react-native-easy-toast icon indicating copy to clipboard operation
react-native-easy-toast copied to clipboard

Toast 在多个页面navigate之后就不生效了

Open miyaliunian opened this issue 7 years ago • 2 comments

我有一个跟页面 里边定义了 Toast 然后使用 this.subscription = DeviceEventEmitter.addListener('toastInfo', (info) => { this.refs.toast.show(info,10000) }) 定义监听。 如果在当前页面使用 DeviceEventEmitter.emit('toastInfo','通知来了') Toast 能正常显示 如果在其第n个子页面 使用DeviceEventEmitter.emit('toastInfo','通知来了') Toast就不能正常显示了, 页面跳转使用的是 react-navigation

miyaliunian avatar Dec 05 '17 09:12 miyaliunian

我去 我也遇到这个问题了 感觉就是和toast有关,show toast之后我的所有同志都失效了 。。。

mgfjx avatar Oct 10 '19 13:10 mgfjx

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.

miyaliunian avatar Oct 11 '19 00:10 miyaliunian