React Native 中吐司组件react-native-easy-toast

https://github.com/crazycodeboy/react-native-easy-toastreact

用法:git

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

 

在render()方法的return()中的最末尾:github

<Toast ref={'toast'} position={'center'}/>

 

在须要吐司的地方:react-native

this.refs.toast.show('没有更多了');
相关文章
相关标签/搜索