react-native-webview-messaging
react-native-webview-messaging copied to clipboard
Event call on Android but not on iOS
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 are you trying to call event right after webview loaded?
@R1ZZU yes, is it possible?
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