react-native-invoke-app
react-native-invoke-app copied to clipboard
listener not work's
hi, i used this plugin in react-native :^0.57.1, i want to after invoke route to specific ecene like you said but listener not fire: app.js: componentWillMount(){ DeviceEventEmitter.addListener('appInvoked', (data) => { const { route } = data; console.log("data IS:"); console.log(data); }); } and i added to mainActivity.java part of code you said, but my log not appears, can you help me what's wrong?
Same problem here, the listener does not trigger upon invoke being called, I went through the code a bit, and in the index, I didn't find NativeEventEmitter, so I don't know how it would be generating the event, sadly I'm fairly new to react-native modules so I don't even know if that is the right way to do it, anyways hoping for an answer from @vicke4 .