--- title: Triggers description: Understand how to use triggers to create notifications that fire under specific conditions. --- Triggers can be used to display notifications in-advance when a specific condition is met such as time. For example, you may wish to notify your user when they have a meeting at work. ## Handling trigger notifications ### Creating a trigger notification ```js import React from 'react'; import { View, Button } from 'react-native'; import notifee, { TimestampTrigger, TriggerType } from 'react-native-notify-kit'; function Screen() { async function onCreateTriggerNotification() { const date = new Date(Date.now()); date.setHours(11); date.setMinutes(10); // Create a time-based trigger const trigger: TimestampTrigger = { type: TriggerType.TIMESTAMP, timestamp: date.getTime(), // fire at 11:10am (10 minutes before meeting) }; // Create a trigger notification await notifee.createTriggerNotification( { title: 'Meeting with Jane', body: 'Today at 11:20am', android: { channelId: 'your-channel-id', }, }, trigger, ); } return (