From 72d3e3c6cb838653e2b084f92ba702b121481975 Mon Sep 17 00:00:00 2001 From: Ingrid Wang Date: Fri, 16 Feb 2024 11:00:37 -0800 Subject: [PATCH] Tweak documentation for soundName property (#43004) Summary: Changelog: [Internal] Reviewed By: philIip Differential Revision: D53734570 --- .../specs/modules/NativePushNotificationManagerIOS.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/react-native/src/private/specs/modules/NativePushNotificationManagerIOS.js b/packages/react-native/src/private/specs/modules/NativePushNotificationManagerIOS.js index 7ab8602add56..01eeeaf35cd4 100644 --- a/packages/react-native/src/private/specs/modules/NativePushNotificationManagerIOS.js +++ b/packages/react-native/src/private/specs/modules/NativePushNotificationManagerIOS.js @@ -50,9 +50,9 @@ type Notification = {| /** Whether to silence the notification sound. */ +isSilent?: ?boolean, /** - * Custom notification sound to play. Write-only: soundName will be null when - * accessing already created notifications using getScheduledLocalNotifications - * or getDeliveredNotifications. + * Custom notification sound. Can only be set when creating notifications. + * This will be null for notifications retrieved via + * getScheduledLocalNotifications or getDeliveredNotifications. */ +soundName?: ?string, /** DEPRECATED. This was used for iOS's legacy UILocalNotification. */