react-native-webview/docs
Ryan Linton ec469cf00d fix(WKWebview): Surface evaluateJavaScript errors (#179)
In the current code using `startInLoadingState` and `injectedJavaScript` will result in an infinite loading state if `injectedJavaScript` fails to evaluate for some reason. This adds a red box error explaining there was a failure to evaluate javascript. In my case this was do to the JS string not returning a valid type so I've added a that as a potential solution in the error message and added some documentation to the API Reference with some additional warnings.

To reproduce the existing behavior setup a webview with `startInLoadingState` and `injectedJavaScript` that returns an invalid type (in my case it returned a function). You should see an infinite loading state as `onLoadEnd` is never called.

Try the same with this branch and you'll get a nice red box error suggesting one potential solution to the problem.

![simulator screen shot - iphone 8 plus - 2018-11-28 at 15 09 25](https://user-images.githubusercontent.com/1944151/49193714-fccde100-f334-11e8-89dc-bf220e0adf23.png)
2018-12-14 11:24:52 +01:00
..
Contributing.md chore(readme): Added contributing guide and empyrical link (#146) 2018-11-19 11:32:22 +01:00
Custom-Android.md Imported custom iOS and Android webview docs (as-is, with warning) 2018-09-19 19:41:27 -07:00
Custom-iOS.md Imported custom iOS and Android webview docs (as-is, with warning) 2018-09-19 19:41:27 -07:00
Debugging.md chore(documentation): Update Debugging.md (#96) 2018-10-30 15:47:05 +01:00
Getting-Started.md Added first draft of docs folder and documentation 2018-09-19 19:27:09 -07:00
Guide.md feat(Android): Support Android file upload (#60) 2018-11-21 11:46:43 +01:00
Reference.md fix(WKWebview): Surface evaluateJavaScript errors (#179) 2018-12-14 11:24:52 +01:00