Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Commit a9083c8

Browse files
committed
Merge branch 'master' of github.com:zo0r/react-native-push-notification
* 'master' of github.com:zo0r/react-native-push-notification: Document format of `when:` value
2 parents a97635e + e00c97c commit a9083c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ PushNotification.localNotification({
345345
shortcutId: "shortcut-id", // (optional) If this notification is duplicative of a Launcher shortcut, sets the id of the shortcut, in case the Launcher wants to hide the shortcut, default undefined
346346
onlyAlertOnce: false, // (optional) alert will open only once with sound and notify, default: false
347347

348-
when: null, // (optionnal) Add a timestamp pertaining to the notification (usually the time the event occurred). For apps targeting Build.VERSION_CODES.N and above, this time is not shown anymore by default and must be opted into by using `showWhen`, default: null.
348+
when: null, // (optional) Add a timestamp (Unix timestamp value in milliseconds) pertaining to the notification (usually the time the event occurred). For apps targeting Build.VERSION_CODES.N and above, this time is not shown anymore by default and must be opted into by using `showWhen`, default: null.
349349
usesChronometer: false, // (optional) Show the `when` field as a stopwatch. Instead of presenting `when` as a timestamp, the notification will show an automatically updating display of the minutes and seconds since when. Useful when showing an elapsed time (like an ongoing phone call), default: false.
350350
timeoutAfter: null, // (optional) Specifies a duration in milliseconds after which this notification should be canceled, if it is not already canceled, default: null
351351

0 commit comments

Comments
 (0)