@alexzunik/rn-awesome-notifications
v0.1.7
Published
Amazing notifications for react native apps
Downloads
27
Maintainers
Readme
Description
Installation
npm i --save @alexzunik/rn-awesome-notifications
Install require dependences
- @react-native-community/blur
- react-native-gesture-handler
- react-native-reanimated - need v1
- react-native-uuid
- hoist-non-react-statics
- buffer
Usage
In root Component
import { NotificationProvider } from "@alexzunik/rn-awesome-notifications";
<NotificationProvider>
...
</NotificationProvider>
In your Component
import { useNotify } from "@alexzunik/rn-awesome-notifications";
const MyComponent: React.FC = () => {
const notify = useNotify();
return (
<Button
title="Without buttons and icon"
onPress={() => {
notify({
title: "Test push notification",
message: "This is push was recievd from local storage",
})
}}
/>
)
}