-
Notifications
You must be signed in to change notification settings - Fork 24.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webview postMessage slow in Release/Production build #18506
Comments
Thanks for posting this! It looks like your issue may refer to an older version of React Native. Can you reproduce the issue on the latest release, v0.54? Thank you for your contributions. |
I haven't had the chance to update to Sierra/XCode9, running into the same issue here when building: #18238 Could someone try to reproduce in 0.54? Edit: Got it running in 0.53, same behaviour though. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Closing as author did not respond to followup. |
@sambernaerdt Interesting, was the logging on the React Native side, or from inside the WebView? |
@sambernaerdt thanks for the hint, I have remove the logging and it's no longer delay |
I'm using a webview to send click events back to react-native. When building for debug, the time to receive the message is quick ( 0.5 seconds), but when building for release/production the time is ~ 5 seconds in the simulator and ~10 seconds on device. I have also tried using react-native-wkwebview-reborn with the same result.
Environment
OS: OS X El Capitan 10.11.6
Node: 6.4.0
Yarn: Not Found
npm: 3.10.3
Watchman: 4.6.0
Xcode: Xcode 8.0 Build version 8A218a
Android Studio: 2.1 AI-143.3101438
Packages: (wanted => installed)
react: 16.0.0 => 16.0.0
react-native: ^0.51.0 => 0.51.0
Steps to Reproduce
index.html
index.js
Expected Behavior
Similar performance and speed to debug.
Actual Behavior
Much slower.
The text was updated successfully, but these errors were encountered: