robcalcroft / react-native-in-app-notification

:bell: Customisable in-app notification component for React Native
MIT License
270 stars 78 forks source link

add function to programatically close notification and pass additional data to NotificationBody component #24

Open Noor0 opened 5 years ago

Noor0 commented 5 years ago

I was using this package for in-app notification on ios and wanted to allow user to close notification by tapping a cross button and also pass additional data to my onPress handler from the NotificationBody component, so i updated the library's code to do that and thought it might be useful to some other dev as well, so here's the pull request.