react-native-webview-messaging icon indicating copy to clipboard operation
react-native-webview-messaging copied to clipboard

Event call on Android but not on iOS

Open SamBellerose opened this issue 8 years ago • 3 comments

I'm trying to figure out how to call an event on iOS, it works fine on Android, but I'm not sure why it doesn't on iOS, is there anything to add in the code or in the iOS project in order to make it work?

Thanks!

SamBellerose avatar Nov 17 '17 18:11 SamBellerose

@SamBellerose are you trying to call event right after webview loaded?

lesnitsky avatar Nov 20 '17 17:11 lesnitsky

@R1ZZU yes, is it possible?

SamBellerose avatar Nov 20 '17 18:11 SamBellerose

that's most likely related to this issue You can try to emit event inside setTimeout, however synchronous emit of event doesn't really makes sense, as you can use onLoad callback of RN WebView to make sure webview was loaded. Let me know if you need more expanded explanation

lesnitsky avatar Nov 20 '17 18:11 lesnitsky