0.1.7 • Published 3 years ago

@alexzunik/rn-awesome-notifications v0.1.7

Weekly downloads
2
License
MIT
Repository
github
Last release
3 years ago

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",
        })
      }}
    />
  )
}
0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago