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('没有更多了');
此文仅为鄙人学习笔记之用,朋友你来了,如有不明白或者建议又或者想给我指点一二,请私信我。liuw_flexi@163.com/QQ群:582039935. 我的gitHub: (学习代码都在gitHub) https://github.com/nwgdegitHub/
原文地址:https://www.cnblogs.com/liuw-flexi/p/11653619.html