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

Commit c5490e8

Browse files
committed
Update documentation of how to use repeatTime
1 parent cdc5524 commit c5490e8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,6 @@ PushNotification.localNotification({
324324
ignoreInForeground: false, // (optional) if true, the notification will not be visible when the app is in the foreground (useful for parity with how iOS notifications appear). should be used in combine with `com.dieam.reactnativepushnotification.notification_foreground` setting
325325
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
326326
onlyAlertOnce: false, // (optional) alert will open only once with sound and notify, default: false
327-
repeatTime: 1, // (optional) Increment of configured repeateType. Check 'Repeating Notifications' section for more info.
328327

329328
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.
330329
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.
@@ -362,6 +361,9 @@ PushNotification.localNotificationSchedule({
362361
message: "My Notification Message", // (required)
363362
date: new Date(Date.now() + 60 * 1000), // in 60 secs
364363
allowWhileIdle: false, // (optional) set notification to work while on doze, default: false
364+
365+
/* Android Only Properties */
366+
repeatTime: 1, // (optional) Increment of configured repeateType. Check 'Repeating Notifications' section for more info.
365367
});
366368
```
367369

0 commit comments

Comments
 (0)