react-native-invoke-app icon indicating copy to clipboard operation
react-native-invoke-app copied to clipboard

listener not work's

Open kingofday opened this issue 5 years ago • 1 comments

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?

kingofday avatar Aug 26 '19 11:08 kingofday

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 .

methce avatar Nov 08 '19 13:11 methce