Interface: AndroidAction

Defined in: packages/react-native/src/types/NotificationAndroid.ts:496

The interface used to describe a notification quick action for Android.

Notification actions allow users to interact with notifications, allowing you to handle events within your application. When an action completes (e.g. pressing an action, or filling out an input box) an event is sent.

View the Quick Actions documentation to learn more.

Platform

android

Properties

icon?

optional icon: string

Defined in: packages/react-native/src/types/NotificationAndroid.ts:516

An remote http or local icon path representing the action. Newer devices may not show the icon.

Recommended icon size is 24x24 px.

input?

optional input: true | AndroidInput

Defined in: packages/react-native/src/types/NotificationAndroid.ts:527

If provided, the action accepts user input.

If true, the user will be able to provide free text input when the action is pressed. This property can be further configured for advanced inputs.

View the Action Input documentation to learn more.

pressAction

pressAction: NotificationPressAction

Defined in: packages/react-native/src/types/NotificationAndroid.ts:504

The press action interface describing what happens when an action completes.

Note; unlike the pressAction in the notification body, an action does not need to open the application and can perform background tasks. See the AndroidPressAction reference or Quick Actions documentation to learn more.

title

title: string

Defined in: packages/react-native/src/types/NotificationAndroid.ts:509

The title of the action, e.g. "Reply", "Mark as read" etc.