WebView
Props
renderLoadingautomaticallyAdjustContentInsetscontentInsethtmljavaScriptEnabledAndroidonNavigationStateChangerenderErrorbouncesscalesPageToFitscrollEnabledshouldInjectAJAXHandlerstartInLoadingStatestyleurl
Methods
goForwardgoBackreloadupdateNavigationStategetWebWiewHandleonLoadingStartonLoadingErroronLoadingFinish
Reference
Props
renderLoading
| Type | Required | 
|---|---|
| function | No | 
automaticallyAdjustContentInsets
| Type | Required | 
|---|---|
| bool | No | 
contentInset
| Type | Required | 
|---|---|
| object: {top: number, left: number, bottom: number, right: number} | No | 
html
| Type | Required | 
|---|---|
| string | No | 
javaScriptEnabledAndroid
Used for android only, JS is enabled by default for WebView on iOS
| Type | Required | 
|---|---|
| bool | No | 
onNavigationStateChange
| Type | Required | 
|---|---|
| function | No | 
renderError
| Type | Required | 
|---|---|
| function | No | 
bounces
| Type | Required | 
|---|---|
| bool | No | 
scalesPageToFit
Used for iOS only, sets whether the webpage scales to fit the view and the user can change the scale
| Type | Required | 
|---|---|
| bool | No | 
scrollEnabled
| Type | Required | 
|---|---|
| bool | No | 
shouldInjectAJAXHandler
| Type | Required | 
|---|---|
| bool | No | 
startInLoadingState
| Type | Required | 
|---|---|
| bool | No | 
style
| Type | Required | 
|---|---|
| View | No | 
url
| Type | Required | 
|---|---|
| string | No | 
Methods
goForward()
goForward();
goBack()
goBack();
reload()
reload();
updateNavigationState()
updateNavigationState((event: Event));
We return an event with a bunch of fields including: url, title, loading, canGoBack, canGoForward
getWebWiewHandle()
getWebWiewHandle():
onLoadingStart()
onLoadingStart((event: Event));
onLoadingError()
onLoadingError((event: Event));
onLoadingFinish()
onLoadingFinish((event: Event));
