robcalcroft / react-native-in-app-notification

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

Expose context so consumer can use with hooks #55

Closed dlombardi closed 2 years ago

dlombardi commented 2 years ago

This PR should allow the library consumer to write a custom hook to expose showNotification using the library's internal context. Basically, this lets us use hooks instead of the HOC which is more in line with modern practice.

dlombardi commented 2 years ago

@robcalcroft

robcalcroft commented 2 years ago

LGTM! Will do a release this evening if I have time

dlombardi commented 2 years ago

thanks @robcalcroft! This issue https://github.com/robcalcroft/react-native-in-app-notification/issues/19 is still a problem for me but it looks like a commenter said it was fixed by using a github url to master so perhaps this release might fix two things! Looking forward to it so I can quiet that warning in my app 👍