1.0.42 • Published 3 years ago

react-with-native-notification v1.0.42

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

react-with-native-notification

Wrapper of react-toastify for web and expo-notifications on iOS and Android

Installation

For a react project:

yarn add react-with-native-notification react-toastify

For a react-native expo project

expo install react-with-native-notification expo-notifications

For a next.js project: (This module is not transpiled yet)

const withTM = require('next-transpile-modules')([
  'react-with-native-notification',
]); // pass the modules you would like to see transpiled

module.exports = withTM({ your config });

Usage

In your apps root:

import { ToastContainer } from "react-with-native-notification";

# and in somewhere high up your tree:

<ToastContainer />

When you want to fire a notification:

import { toast } from "react-with-native-notification";

<Button onClick={() => toast("Hello world")}>Click me!</Button>
1.0.39

3 years ago

1.0.38

3 years ago

1.0.40

3 years ago

1.0.42

3 years ago

1.0.41

3 years ago

1.0.37

3 years ago

1.0.36

3 years ago

1.0.35

3 years ago

1.0.34

3 years ago

1.0.33

3 years ago

1.0.32

3 years ago

1.0.31

3 years ago

1.0.30

3 years ago

1.0.29

3 years ago

1.0.28

3 years ago

1.0.26

4 years ago

1.0.25

4 years ago

1.0.24

4 years ago

1.0.23

4 years ago

1.0.22

4 years ago

1.0.21

4 years ago

1.0.20

4 years ago

1.0.19

4 years ago

1.0.18

4 years ago

1.0.17

4 years ago

1.0.16

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago