Comments (11)
I might start implementing a retry method to prevent this issue. Give me couple of days. Sorry that it takes tool long to answer.
from react-native-webview-bridge.
Hi Alinz,
Thanks for looking into this. I'm also experiencing the issue "Invalid view returned from registry", is there a workaround in the mean time?
Thanks!
from react-native-webview-bridge.
@victorkas I have experiences this crash in simulator. However, in device, I haven't seen it yet. Have you seen this happening in device?
from react-native-webview-bridge.
Thanks @alinz . I traced the issue and it looks like a fetch() call in a view code that when it returns tries to send a message to WebViewBridge and causes the issue if the component has unmounted. I'm not sure if there's a cleaner way to detect if a component has unmounted, but i've added a check to avoid the crash -
if (!this.refs.webViewBridge) return;
from react-native-webview-bridge.
Hi @alinz, yes I am facing this issue in device too. Cause of this issue I have to stop some important tasks which is using webview bridge. So I need this asap. :(
Error getting while crashing:
OFF, performance optimizations are ON'
2015-09-30 12:34:28.808 projectname[1638:215192] *** Assertion failure in __53-[RCTWebViewManager(WebViewManager) callbackCleanup:]_block_invoke(), /path/projectname/node_modules/react-native-webview-bridge/WebViewBridge/RCTWebViewManager+WebViewManager.m:37
2015-09-30 12:34:28.810 [error][tid:main][RCTUIManager.m:887] Exception thrown while executing UI block: Invalid view returned from registry, expecting RKWebView, got: (null)
Thanks in advance.
from react-native-webview-bridge.
@tazmattaz I need some time for this since I have to dive into React-Native code base. in a meantime can you provide a simple example that always causes this problem?
from react-native-webview-bridge.
I cannot provide the main code but this happens usually while we typing into any textarea/textfield or navigate from one page to another(both or single page use webview) or if any age use webview and we click on back button without loading that page.
In all of above cases, my app is crashing....
from react-native-webview-bridge.
@alinz Steps to reproduce:
- close iOS Simulator and React Native packager if running.
- replace
index.ios.js
in Sample1 from react-native-webview-bridge repo with theindex.ios.js
code from this Gist clean
(optional),run
- The two text links at the top are
Navigator
scenes. The default upon load is an emptyView
. Click theweb
text to load Netflix.com in a new scene composed of'react-native-webview-bridge'
- Click the
back
text to unload the Webview Bridge scene. - Assertion failure / thrown exception described in this issue is thrown soon after the WebView Bridge appears to be animated away.
from react-native-webview-bridge.
@alinz Hi,
This is resolved. ?
from react-native-webview-bridge.
Hi I was able to circumvent the error by wrapping the cleanup call in a try-catch. I created a fork here: https://github.com/CorpusCallosum/react-native-webview-bridge
You can install it via NPM by adding this line in your package.json dependencies:
"react-native-webview-bridge": "https://github.com/CorpusCallosum/react-native-webview-bridge/tarball/master"
I'm not sure what the cleanup call is doing, but this seems to be working as expected for me now with no errors.
from react-native-webview-bridge.
I have found and rewritten this module and I think this error has been resolved. The only thing that you have to remember is it has a hard dependency to react-native 0.16 and above. I will make support for 0.15 and 0.14 if I receive enough request. Please reopen this issue if you still encounter this problem.
from react-native-webview-bridge.
Related Issues (20)
- Super expression error.. HOT 2
- RCTWebViewBridge
- Uncaught TypeError: WebViewBridge.onMessage is not a function
- injectedJavaScript not working on android 5.1 and below
- hi in android it can not run HOT 1
- getting warning
- Accessing View Manager Configs Directly is No Longer Supported
- Rendering HTML file HOT 1
- Question about Browser Version
- Use UIManager.getViewManagerConfig('RCTWebViewBridge') HOT 1
- 'React/RCTViewManager.h' file not found HOT 3
- Not working with react-native 0.6 HOT 3
- onBridgeMessage method not working
- Is this repo officially inactive ? HOT 4
- android app crash while run the app HOT 8
- WebView has been removed HOT 3
- Update to WKWebView for iOS
- Release version 0.40.2 HOT 1
- WebView IOS error HOT 2
- Could not find method compile() for arguments [project ':react-native-webview-bridge'] HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-webview-bridge.