From 713ded1d5f1e40a42e666e246e236e398f5cfb43 Mon Sep 17 00:00:00 2001 From: Ingrid Wang Date: Fri, 16 Feb 2024 15:22:49 -0800 Subject: [PATCH] Tweak documentation for soundName property (#43004) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/43004 Changelog: [Internal] Reviewed By: philIip Differential Revision: D53734570 fbshipit-source-id: e2233b4a2f1bcb48af5d56319d215eb0ccceaa4e --- .../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 7ab8602add5..01eeeaf35cd 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. */