react-native-app-toast

1.0.3 • Public • Published

react-native-app-toast

A react native module to show toast on iOS and Android.

Useage

Installation

$ npm install --save react-native-app-toast

Import

Import this module into your js file.

import Toast from 'react-native-app-toast';

Use

Add this module into the render function of your component. Don't forget set its ref props as toast or other word you like.

render() {
    return(
        <View>
            <Toast ref="toast" />
        </View>
    );
}

Show

Congratulations! You can let the toast show like this:

this.refs.toast.show('your message', 3000);

Dependents (0)

Package Sidebar

Install

npm i react-native-app-toast

Weekly Downloads

3

Version

1.0.3

License

ISC

Last publish

Collaborators

  • chenhuige