@alexzunik/rn-awesome-notifications

Amazing notifications for react native apps

Usage no npm install needed!

<script type="module">
  import alexzunikRnAwesomeNotifications from 'https://cdn.skypack.dev/@alexzunik/rn-awesome-notifications';
</script>

README

Description

Installation

npm i --save @alexzunik/rn-awesome-notifications

Install require dependences

  1. @react-native-community/blur
  2. react-native-gesture-handler
  3. react-native-reanimated - need v1
  4. react-native-uuid
  5. hoist-non-react-statics
  6. 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",
        })
      }}
    />
  )
}