JonasDev
JonasDev

Reputation: 67

How to send notification with button in react native expo

I am working on app where I have some requirement , Actually I want to send notification when user click on button . I really tried but didn't find any solution . Could someone please help me how to resolve this issue .

Thanks

Upvotes: 0

Views: 547

Answers (1)

Redseb
Redseb

Reputation: 329

I'm not sure what the point of sending a notification immediately after pressing a button is, however, Expo provides a nice library expo-notifications:

Use presentNotificationAsync in order to immediately present a notification.

Use scheduleNotificationAsync in order to schedule a notification in the future.

Upvotes: 2

Related Questions