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('没有更多了');

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-02
  • 2021-06-20
  • 2021-10-16
  • 2021-04-28
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-13
  • 2021-02-18
  • 2019-09-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案