Anonymous View
1.0.42 • Published 4 years ago

react-with-native-notification v1.0.42

Weekly downloads
-
License
ISC
Repository
github
Last release
4 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

4 years ago

1.0.38

4 years ago

1.0.40

4 years ago

1.0.42

4 years ago

1.0.41

4 years ago

1.0.37

4 years ago

1.0.36

4 years ago

1.0.35

4 years ago

1.0.34

4 years ago

1.0.33

4 years ago

1.0.32

4 years ago

1.0.31

4 years ago

1.0.30

4 years ago

1.0.29

4 years ago

1.0.28

4 years ago

1.0.26

5 years ago

1.0.25

5 years ago

1.0.24

5 years ago

1.0.23

5 years ago

1.0.22

5 years ago

1.0.21

5 years ago

1.0.20

5 years ago

1.0.19

5 years ago

1.0.18

5 years ago

1.0.17

5 years ago

1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago