[**react-native-notify-kit**](react-native/reference/index)

---

[react-native-notify-kit](react-native/reference/index) / EventType

# Enumeration: EventType

Defined in: [packages/react-native/src/types/Notification.ts:342](https://github.com/marcocrupi/react-native-notify-kit/blob/main/packages/react-native/src/types/Notification.ts#L342)

An enum representing an event type, defined on [`Event`](/react-native/reference/event).

View the [Events](/react-native/events) documentation to learn more about foreground and
background events.

## Enumeration Members

### ACTION_PRESS

> **ACTION_PRESS**: `2`

Defined in: [packages/react-native/src/types/Notification.ts:376](https://github.com/marcocrupi/react-native-notify-kit/blob/main/packages/react-native/src/types/Notification.ts#L376)

Event type is sent when a user presses a notification action.

---

### APP_BLOCKED

> **APP_BLOCKED**: `4`

Defined in: [packages/react-native/src/types/Notification.ts:393](https://github.com/marcocrupi/react-native-notify-kit/blob/main/packages/react-native/src/types/Notification.ts#L393)

Event is sent when the user changes the notification blocked state for the entire application or
when the user opens the application settings.

#### Platform

android API Level >= 28

---

### CHANNEL_BLOCKED

> **CHANNEL_BLOCKED**: `5`

Defined in: [packages/react-native/src/types/Notification.ts:400](https://github.com/marcocrupi/react-native-notify-kit/blob/main/packages/react-native/src/types/Notification.ts#L400)

Event type is sent when the user changes the notification blocked state for a channel in the application.

#### Platform

android API Level >= 28

---

### CHANNEL_GROUP_BLOCKED

> **CHANNEL_GROUP_BLOCKED**: `6`

Defined in: [packages/react-native/src/types/Notification.ts:407](https://github.com/marcocrupi/react-native-notify-kit/blob/main/packages/react-native/src/types/Notification.ts#L407)

Event type is sent when the user changes the notification blocked state for a channel group in the application.

#### Platform

android API Level >= 28

---

### DELIVERED

> **DELIVERED**: `3`

Defined in: [packages/react-native/src/types/Notification.ts:385](https://github.com/marcocrupi/react-native-notify-kit/blob/main/packages/react-native/src/types/Notification.ts#L385)

Event type sent when a notification has been delivered to the device. For trigger notifications,
this event is sent at the point when the trigger executes, not when a the trigger notification is created.

It's important to note even though a notification has been delivered, it may not be shown to the
user. For example, they may have notifications disabled on the device/channel/app.

---

### DISMISSED

> **DISMISSED**: `0`

Defined in: [packages/react-native/src/types/Notification.ts:359](https://github.com/marcocrupi/react-native-notify-kit/blob/main/packages/react-native/src/types/Notification.ts#L359)

Event type is sent when the user dismisses a notification. This is triggered via the user swiping
the notification from the notification shade.

On Android, the event is also sent when performing "Clear all" notifications unlike on iOS.

This event is **not** sent when a notification is cancelled or times out.

---

### FG_ALREADY_EXIST

> **FG_ALREADY_EXIST**: `8`

Defined in: [packages/react-native/src/types/Notification.ts:419](https://github.com/marcocrupi/react-native-notify-kit/blob/main/packages/react-native/src/types/Notification.ts#L419)

**ANDROID ONLY**

Event type is sent when a notification wants to start a foreground service but a foreground service is already started.

---

### PRESS

> **PRESS**: `1`

Defined in: [packages/react-native/src/types/Notification.ts:371](https://github.com/marcocrupi/react-native-notify-kit/blob/main/packages/react-native/src/types/Notification.ts#L371)

Event type is sent when the user presses a notification body and body tap is enabled.

On Android, omitted `android.pressAction` defaults to opening the app and can emit this
event. Setting `android.pressAction` to `null` disables the notification body tap and
prevents `PRESS`/`getInitialNotification()` from that body tap. Action buttons emit
`ACTION_PRESS` separately.

On iOS, this event is always sent when the user presses a notification.

---

### TRIGGER_NOTIFICATION_CREATED

> **TRIGGER_NOTIFICATION_CREATED**: `7`

Defined in: [packages/react-native/src/types/Notification.ts:412](https://github.com/marcocrupi/react-native-notify-kit/blob/main/packages/react-native/src/types/Notification.ts#L412)

Event type is sent when a notification trigger is created.

---

### UNKNOWN

> **UNKNOWN**: `-1`

Defined in: [packages/react-native/src/types/Notification.ts:349](https://github.com/marcocrupi/react-native-notify-kit/blob/main/packages/react-native/src/types/Notification.ts#L349)

An unknown event was received.

This event type is a failsafe to catch any unknown events from the device. Please
report an issue with a reproduction so it can be correctly handled.
