導(dǎo)入
import Toast, {DURATION} from 'react-native-easy-toast'
render的時候引入
<Toast //提示
ref="toast"
style={{backgroundColor:'gray'}}
position='center'
positionValue={200}
opacity={0.6}
textStyle={{color:'white'}}
/>
使用
this.refs.toast.show('消息列表獲取失敗',1000);