1.0.0 • Published 6 years ago
react-native-rn-toast v1.0.0
react-native-rn-toast
A react native module to show toast like android, it works on iOS and Android(use ToastAndroid from react-native).
Getting started
$ npm install react-native-rn-toast --save
Usage
import Toast from 'react-native-rn-toast';
Toast.show('toast test',Toast.SHORT);
Toast.showWithGravity('toast test',Toast.SHORT, Toast.CENTER);
Toast.showWithGravityAndOffset('toast test',Toast.CENTER, 20, 25);
Mehtod
show()
static show(message, duration)
showWithGravity()
static showWithGravity(message, duration, gravity)
showWithGravityAndOffset()
static showWithGravityAndOffset(message, duration, gravity, xOffset, yOffset)
Properties
SHORT
Toast.SHORT;
LONG
Toast.LONG;
TOP
Toast.TOP;
BOTTOM
Toast.BOTTOM;
CENTER
Toast.CENTER;
1.0.0
6 years ago