react-native-notify-kit

react-native-notify-kit / IOSForegroundPresentationOptions

Interface: IOSForegroundPresentationOptions

Defined in: packages/react-native/src/types/NotificationIOS.ts:157

An interface to customise how notifications are shown when the app is in the foreground.

By default, Notifee will show iOS notifications in heads-up mode if your app is currently in the foreground.

View the Foreground Notifications to learn more.

Platform

ios

Properties

alert?

optional alert: boolean

Defined in: packages/react-native/src/types/NotificationIOS.ts:164

App in foreground dialog box which indicates when a decision has to be made

Defaults to true

Deprecated

Use banner and list instead

badge?

optional badge: boolean

Defined in: packages/react-native/src/types/NotificationIOS.ts:178

App in foreground badge update

Defaults to true

banner?

optional banner: boolean

Defined in: packages/react-native/src/types/NotificationIOS.ts:187

Present the notification as a banner

For iOS 13 and lower, will be equivalent to setting alert to true

Defaults to true

list?

optional list: boolean

Defined in: packages/react-native/src/types/NotificationIOS.ts:196

Show the notification in Notification Center

For iOS 13 and lower, will be equivalent to setting alert to true

Defaults to true

sound?

optional sound: boolean

Defined in: packages/react-native/src/types/NotificationIOS.ts:171

App in foreground notification sound

Defaults to true