react-native-app-toast
v1.0.3
Published
A react native module to shows toast on iOS and Android
Downloads
9
Readme
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);