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

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

用法:

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

 

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

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

 

在需要吐司的地方:

this.refs.toast.show('没有更多了');

 

posted @ 2019-10-11 13:26  liuw_flexi  阅读(895)  评论(0编辑  收藏  举报