Releases: saadqbal/react-native-notification-sounds
Releases · saadqbal/react-native-notification-sounds
Fixed incorrect peer dependency errors
Fixed incorrect peer dependency errors. Thanks to @iamifechi
now support React 18+ and RN 0.72+
now support React 18+ and RN 0.72+. Thanks to @iamifechi .
Replaced deprecated classifier
Replaced deprecated classifier with archiveClassifier . Thanks to @iamifechi
Replaced deprecated classifier
Replaced deprecated classifier with archiveClassifier . Thanks to @iamifechi
v0.5.3 - TypeScript issues resolved
updated to 0.5.3
Added stopSampleSound to ts file.
v0.5.2 removed configs
v0.5.0 - Filter by type
A number of new features added in this release.
stopSampleSound()
added which will stop the current sound playing.- You can now pass a notification type to the
getNotifications(type)
. Type can be 'notification', 'ringtone' or 'alarm' (alarm type is android only)
e.g
// only load the notification sounds
NotificationSounds.getNotifications('notification').then(soundsList => {
console.warn('SOUNDS', JSON.stringify(SoundsList));
playSampleSound(soundsList[1]);
// if you want to stop any playing sound just call:
// stopSampleSound();
});