-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Set CryptoWebView as ready only when it is really ready
We use react-native-webview onLoadEnd callback to set the CryptoWebView as ready. It is an important action because other webviews are rendered only when the CryptoWebView is ready. But the onLoadEnd can be triggered before the javascript, where we add our crypto functions, is executed. It is also executed two times (I do not understand why). So here I send a post message from the CryptoWebView to indicate that it is ready. It fixes a race condition we may encounter more and more.
- Loading branch information
Showing
3 changed files
with
15 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters