react-native-easy-toast
react-native-easy-toast copied to clipboard
Toast 在多个页面navigate之后就不生效了
我有一个跟页面 里边定义了 Toast 然后使用 this.subscription = DeviceEventEmitter.addListener('toastInfo', (info) => { this.refs.toast.show(info,10000) }) 定义监听。 如果在当前页面使用 DeviceEventEmitter.emit('toastInfo','通知来了') Toast 能正常显示 如果在其第n个子页面 使用DeviceEventEmitter.emit('toastInfo','通知来了') Toast就不能正常显示了, 页面跳转使用的是 react-navigation
我去 我也遇到这个问题了 感觉就是和toast有关,show toast之后我的所有同志都失效了 。。。
NativeBase 你换这个吧
在 2019年10月10日,下午9:02,OhashiMiku [email protected] 写道:
我去 我也遇到这个问题了 感觉就是和toast有关,show toast之后我的所有同志都失效了 。。。
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/crazycodeboy/react-native-easy-toast/issues/35?email_source=notifications&email_token=AHGSTEHRTWVNWV335K35N3DQN4RYFA5CNFSM4EGX5YOKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEA4GMDA#issuecomment-540567052, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHGSTEAH254RACRGX7F5LNDQN4RYFANCNFSM4EGX5YOA.