Browse Source

docs(reference): add links to top with jump2header (#1528 by @strdr4605)

[skip ci]
Dragoș Străinu 4 years ago
parent
commit
97aaf89037
No account linked to committer's email address
1 changed files with 76 additions and 76 deletions
  1. 76
    76
      docs/Reference.md

+ 76
- 76
docs/Reference.md View File

88
 
88
 
89
 ## Props
89
 ## Props
90
 
90
 
91
-### `source`
91
+### `source`[⬆](#props-index)<!-- Link generated with jump2header -->
92
 
92
 
93
 Loads static HTML or a URI (with optional headers) in the WebView. Note that static HTML will require setting [`originWhitelist`](Reference.md#originwhitelist) to `["*"]`.
93
 Loads static HTML or a URI (with optional headers) in the WebView. Note that static HTML will require setting [`originWhitelist`](Reference.md#originwhitelist) to `["*"]`.
94
 
94
 
114
 
114
 
115
 ---
115
 ---
116
 
116
 
117
-### `automaticallyAdjustContentInsets`
117
+### `automaticallyAdjustContentInsets`[⬆](#props-index)<!-- Link generated with jump2header -->
118
 
118
 
119
 Controls whether to adjust the content inset for web views that are placed behind a navigation bar, tab bar, or toolbar. The default value is `true`.
119
 Controls whether to adjust the content inset for web views that are placed behind a navigation bar, tab bar, or toolbar. The default value is `true`.
120
 
120
 
124
 
124
 
125
 ---
125
 ---
126
 
126
 
127
-### `injectedJavaScript`
127
+### `injectedJavaScript`[⬆](#props-index)<!-- Link generated with jump2header -->
128
 
128
 
129
 Set this to provide JavaScript that will be injected into the web page after the document finishes loading, but before other subresources finish loading.
129
 Set this to provide JavaScript that will be injected into the web page after the document finishes loading, but before other subresources finish loading.
130
 
130
 
156
 
156
 
157
 ---
157
 ---
158
 
158
 
159
-### `injectedJavaScriptBeforeContentLoaded`
159
+### `injectedJavaScriptBeforeContentLoaded`[⬆](#props-index)<!-- Link generated with jump2header -->
160
 
160
 
161
 Set this to provide JavaScript that will be injected into the web page after the document element is created, but before other subresources finish loading.
161
 Set this to provide JavaScript that will be injected into the web page after the document element is created, but before other subresources finish loading.
162
 
162
 
188
 
188
 
189
 ---
189
 ---
190
 
190
 
191
-### `injectedJavaScriptForMainFrameOnly`
191
+### `injectedJavaScriptForMainFrameOnly`[⬆](#props-index)<!-- Link generated with jump2header -->
192
 
192
 
193
 If `true` (default; mandatory for Android), loads the `injectedJavaScript` only into the main frame.
193
 If `true` (default; mandatory for Android), loads the `injectedJavaScript` only into the main frame.
194
 
194
 
200
 
200
 
201
 ---
201
 ---
202
 
202
 
203
-### `injectedJavaScriptBeforeContentLoadedForMainFrameOnly`
203
+### `injectedJavaScriptBeforeContentLoadedForMainFrameOnly`[⬆](#props-index)<!-- Link generated with jump2header -->
204
 
204
 
205
 If `true` (default; mandatory for Android), loads the `injectedJavaScriptBeforeContentLoaded` only into the main frame.
205
 If `true` (default; mandatory for Android), loads the `injectedJavaScriptBeforeContentLoaded` only into the main frame.
206
 
206
 
212
 
212
 
213
 ---
213
 ---
214
 
214
 
215
-### `mediaPlaybackRequiresUserAction`
215
+### `mediaPlaybackRequiresUserAction`[⬆](#props-index)<!-- Link generated with jump2header -->
216
 
216
 
217
 Boolean that determines whether HTML5 audio and video requires the user to tap them before they start playing. The default value is `true`. (Android API minimum version 17).
217
 Boolean that determines whether HTML5 audio and video requires the user to tap them before they start playing. The default value is `true`. (Android API minimum version 17).
218
 
218
 
224
 
224
 
225
 ---
225
 ---
226
 
226
 
227
-### `nativeConfig`
227
+### `nativeConfig`[⬆](#props-index)<!-- Link generated with jump2header -->
228
 
228
 
229
 Override the native component used to render the WebView. Enables a custom native WebView which uses the same JavaScript as the original WebView.
229
 Override the native component used to render the WebView. Enables a custom native WebView which uses the same JavaScript as the original WebView.
230
 
230
 
240
 
240
 
241
 ---
241
 ---
242
 
242
 
243
-### `onError`
243
+### `onError`[⬆](#props-index)<!-- Link generated with jump2header -->
244
 
244
 
245
 Function that is invoked when the `WebView` load fails.
245
 Function that is invoked when the `WebView` load fails.
246
 
246
 
280
 
280
 
281
 ---
281
 ---
282
 
282
 
283
-### `onLoad`
283
+### `onLoad`[⬆](#props-index)<!-- Link generated with jump2header -->
284
 
284
 
285
 Function that is invoked when the `WebView` has finished loading.
285
 Function that is invoked when the `WebView` has finished loading.
286
 
286
 
313
 
313
 
314
 ---
314
 ---
315
 
315
 
316
-### `onLoadEnd`
316
+### `onLoadEnd`[⬆](#props-index)<!-- Link generated with jump2header -->
317
 
317
 
318
 Function that is invoked when the `WebView` load succeeds or fails.
318
 Function that is invoked when the `WebView` load succeeds or fails.
319
 
319
 
347
 
347
 
348
 ---
348
 ---
349
 
349
 
350
-### `onLoadStart`
350
+### `onLoadStart`[⬆](#props-index)<!-- Link generated with jump2header -->
351
 
351
 
352
 Function that is invoked when the `WebView` starts loading.
352
 Function that is invoked when the `WebView` starts loading.
353
 
353
 
381
 
381
 
382
 ---
382
 ---
383
 
383
 
384
-### `onLoadProgress`
384
+### `onLoadProgress`[⬆](#props-index)<!-- Link generated with jump2header -->
385
 
385
 
386
 Function that is invoked when the `WebView` is loading.
386
 Function that is invoked when the `WebView` is loading.
387
 
387
 
414
 
414
 
415
 ---
415
 ---
416
 
416
 
417
-### `onHttpError`
417
+### `onHttpError`[⬆](#props-index)<!-- Link generated with jump2header -->
418
 
418
 
419
 Function that is invoked when the `WebView` receives an http error.
419
 Function that is invoked when the `WebView` receives an http error.
420
 
420
 
458
 
458
 
459
 ---
459
 ---
460
 
460
 
461
-### `onMessage`
461
+### `onMessage`[⬆](#props-index)<!-- Link generated with jump2header -->
462
 
462
 
463
 Function that is invoked when the webview calls `window.ReactNativeWebView.postMessage`. Setting this property will inject this global into your webview.
463
 Function that is invoked when the webview calls `window.ReactNativeWebView.postMessage`. Setting this property will inject this global into your webview.
464
 
464
 
472
 
472
 
473
 ---
473
 ---
474
 
474
 
475
-### `onNavigationStateChange`
475
+### `onNavigationStateChange`[⬆](#props-index)<!-- Link generated with jump2header -->
476
 
476
 
477
 Function that is invoked when the `WebView` loading starts or ends.
477
 Function that is invoked when the `WebView` loading starts or ends.
478
 
478
 
508
 
508
 
509
 ---
509
 ---
510
 
510
 
511
-### `onContentProcessDidTerminate`
511
+### `onContentProcessDidTerminate`[⬆](#props-index)<!-- Link generated with jump2header -->
512
 
512
 
513
 Function that is invoked when the `WebView` content process is terminated.
513
 Function that is invoked when the `WebView` content process is terminated.
514
 
514
 
542
 
542
 
543
 ---
543
 ---
544
 
544
 
545
-### `originWhitelist`
545
+### `originWhitelist`[⬆](#props-index)<!-- Link generated with jump2header -->
546
 
546
 
547
 List of origin strings to allow being navigated to. The strings allow wildcards and get matched against _just_ the origin (not the full URL). If the user taps to navigate to a new page but the new page is not in this whitelist, the URL will be handled by the OS. The default whitelisted origins are "http://*" and "https://*".
547
 List of origin strings to allow being navigated to. The strings allow wildcards and get matched against _just_ the origin (not the full URL). If the user taps to navigate to a new page but the new page is not in this whitelist, the URL will be handled by the OS. The default whitelisted origins are "http://*" and "https://*".
548
 
548
 
562
 
562
 
563
 ---
563
 ---
564
 
564
 
565
-### `renderError`
565
+### `renderError`[⬆](#props-index)<!-- Link generated with jump2header -->
566
 
566
 
567
 Function that returns a view to show if there's an error.
567
 Function that returns a view to show if there's an error.
568
 
568
 
583
 
583
 
584
 ---
584
 ---
585
 
585
 
586
-### `renderLoading`
586
+### `renderLoading`[⬆](#props-index)<!-- Link generated with jump2header -->
587
 
587
 
588
 Function that returns a loading indicator. The startInLoadingState prop must be set to true in order to use this prop.
588
 Function that returns a loading indicator. The startInLoadingState prop must be set to true in order to use this prop.
589
 
589
 
603
 
603
 
604
 ---
604
 ---
605
 
605
 
606
-### `scalesPageToFit`
606
+### `scalesPageToFit`[⬆](#props-index)<!-- Link generated with jump2header -->
607
 
607
 
608
 Boolean that controls whether the web content is scaled to fit the view and enables the user to change the scale. The default value is `true`.
608
 Boolean that controls whether the web content is scaled to fit the view and enables the user to change the scale. The default value is `true`.
609
 
609
 
613
 
613
 
614
 ---
614
 ---
615
 
615
 
616
-### `onShouldStartLoadWithRequest`
616
+### `onShouldStartLoadWithRequest`[⬆](#props-index)<!-- Link generated with jump2header -->
617
 
617
 
618
 Function that allows custom handling of any web view requests. Return `true` from the function to continue loading the request and `false` to stop loading.
618
 Function that allows custom handling of any web view requests. Return `true` from the function to continue loading the request and `false` to stop loading.
619
 
619
 
651
 
651
 
652
 ---
652
 ---
653
 
653
 
654
-### `startInLoadingState`
654
+### `startInLoadingState`[⬆](#props-index)<!-- Link generated with jump2header -->
655
 
655
 
656
 Boolean value that forces the `WebView` to show the loading view on the first load. This prop must be set to `true` in order for the `renderLoading` prop to work.
656
 Boolean value that forces the `WebView` to show the loading view on the first load. This prop must be set to `true` in order for the `renderLoading` prop to work.
657
 
657
 
661
 
661
 
662
 ---
662
 ---
663
 
663
 
664
-### `style`
664
+### `style`[⬆](#props-index)<!-- Link generated with jump2header -->
665
 
665
 
666
 A style object that allow you to customize the `WebView` style. Please note that there are default styles (example: you need to add `flex: 0` to the style if you want to use `height` property).
666
 A style object that allow you to customize the `WebView` style. Please note that there are default styles (example: you need to add `flex: 0` to the style if you want to use `height` property).
667
 
667
 
680
 
680
 
681
 ---
681
 ---
682
 
682
 
683
-### `containerStyle`
683
+### `containerStyle`[⬆](#props-index)<!-- Link generated with jump2header -->
684
 
684
 
685
 A style object that allow you to customize the `WebView` container style. Please note that there are default styles (example: you need to add `flex: 0` to the style if you want to use `height` property).
685
 A style object that allow you to customize the `WebView` container style. Please note that there are default styles (example: you need to add `flex: 0` to the style if you want to use `height` property).
686
 
686
 
699
 
699
 
700
 ---
700
 ---
701
 
701
 
702
-### `decelerationRate`
702
+### `decelerationRate`[⬆](#props-index)<!-- Link generated with jump2header -->
703
 
703
 
704
 A floating-point number that determines how quickly the scroll view decelerates after the user lifts their finger. You may also use the string shortcuts `"normal"` and `"fast"` which match the underlying iOS settings for `UIScrollViewDecelerationRateNormal` and `UIScrollViewDecelerationRateFast` respectively:
704
 A floating-point number that determines how quickly the scroll view decelerates after the user lifts their finger. You may also use the string shortcuts `"normal"` and `"fast"` which match the underlying iOS settings for `UIScrollViewDecelerationRateNormal` and `UIScrollViewDecelerationRateFast` respectively:
705
 
705
 
712
 
712
 
713
 ---
713
 ---
714
 
714
 
715
-### `domStorageEnabled`
715
+### `domStorageEnabled`[⬆](#props-index)<!-- Link generated with jump2header -->
716
 
716
 
717
 Boolean value to control whether DOM Storage is enabled. Used only in Android.
717
 Boolean value to control whether DOM Storage is enabled. Used only in Android.
718
 
718
 
722
 
722
 
723
 ---
723
 ---
724
 
724
 
725
-### `javaScriptEnabled`
725
+### `javaScriptEnabled`[⬆](#props-index)<!-- Link generated with jump2header -->
726
 
726
 
727
 Boolean value to enable JavaScript in the `WebView`. The default value is `true`.
727
 Boolean value to enable JavaScript in the `WebView`. The default value is `true`.
728
 
728
 
732
 
732
 
733
 ---
733
 ---
734
 
734
 
735
-### `javaScriptCanOpenWindowsAutomatically`
735
+### `javaScriptCanOpenWindowsAutomatically`[⬆](#props-index)<!-- Link generated with jump2header -->
736
 
736
 
737
 A Boolean value indicating whether JavaScript can open windows without user interaction. The default value is `false`.
737
 A Boolean value indicating whether JavaScript can open windows without user interaction. The default value is `false`.
738
 
738
 
742
 
742
 
743
 ---
743
 ---
744
 
744
 
745
-### `androidHardwareAccelerationDisabled`
745
+### `androidHardwareAccelerationDisabled`[⬆](#props-index)<!-- Link generated with jump2header -->
746
 
746
 
747
 Boolean value to disable Hardware Acceleration in the `WebView`. Used on Android only as Hardware Acceleration is a feature only for Android. The default value is `false`.
747
 Boolean value to disable Hardware Acceleration in the `WebView`. Used on Android only as Hardware Acceleration is a feature only for Android. The default value is `false`.
748
 
748
 
752
 
752
 
753
 ---
753
 ---
754
 
754
 
755
-### `mixedContentMode`
755
+### `mixedContentMode`[⬆](#props-index)<!-- Link generated with jump2header -->
756
 
756
 
757
 Specifies the mixed content mode. i.e WebView will allow a secure origin to load content from any other origin.
757
 Specifies the mixed content mode. i.e WebView will allow a secure origin to load content from any other origin.
758
 
758
 
768
 
768
 
769
 ---
769
 ---
770
 
770
 
771
-### `thirdPartyCookiesEnabled`
771
+### `thirdPartyCookiesEnabled`[⬆](#props-index)<!-- Link generated with jump2header -->
772
 
772
 
773
 Boolean value to enable third party cookies in the `WebView`. Used on Android Lollipop and above only as third party cookies are enabled by default on Android Kitkat and below and on iOS. The default value is `true`. For more on cookies, read the [Guide](Guide.md#Managing-Cookies)
773
 Boolean value to enable third party cookies in the `WebView`. Used on Android Lollipop and above only as third party cookies are enabled by default on Android Kitkat and below and on iOS. The default value is `true`. For more on cookies, read the [Guide](Guide.md#Managing-Cookies)
774
 
774
 
778
 
778
 
779
 ---
779
 ---
780
 
780
 
781
-### `userAgent`
781
+### `userAgent`[⬆](#props-index)<!-- Link generated with jump2header -->
782
 
782
 
783
 Sets the user-agent for the `WebView`.
783
 Sets the user-agent for the `WebView`.
784
 
784
 
788
 
788
 
789
 ---
789
 ---
790
 
790
 
791
-### `applicationNameForUserAgent`
791
+### `applicationNameForUserAgent`[⬆](#props-index)<!-- Link generated with jump2header -->
792
 
792
 
793
 Append to the existing user-agent. Setting `userAgent` will override this.
793
 Append to the existing user-agent. Setting `userAgent` will override this.
794
 
794
 
806
 // Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 DemoApp/1.1.0
806
 // Mozilla/5.0 (iPhone; CPU iPhone OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 DemoApp/1.1.0
807
 ```
807
 ```
808
 
808
 
809
-### `allowsFullscreenVideo`
809
+### `allowsFullscreenVideo`[⬆](#props-index)<!-- Link generated with jump2header -->
810
 
810
 
811
 Boolean that determines whether videos are allowed to be played in fullscreen. The default value is `false`.
811
 Boolean that determines whether videos are allowed to be played in fullscreen. The default value is `false`.
812
 
812
 
816
 
816
 
817
 ---
817
 ---
818
 
818
 
819
-### `allowsInlineMediaPlayback`
819
+### `allowsInlineMediaPlayback`[⬆](#props-index)<!-- Link generated with jump2header -->
820
 
820
 
821
 Boolean that determines whether HTML5 videos play inline or use the native full-screen controller. The default value is `false`.
821
 Boolean that determines whether HTML5 videos play inline or use the native full-screen controller. The default value is `false`.
822
 
822
 
830
 
830
 
831
 ---
831
 ---
832
 
832
 
833
-### `bounces`
833
+### `bounces`[⬆](#props-index)<!-- Link generated with jump2header -->
834
 
834
 
835
 Boolean value that determines whether the web view bounces when it reaches the edge of the content. The default value is `true`.
835
 Boolean value that determines whether the web view bounces when it reaches the edge of the content. The default value is `true`.
836
 
836
 
840
 
840
 
841
 ---
841
 ---
842
 
842
 
843
-### `overScrollMode`
843
+### `overScrollMode`[⬆](#props-index)<!-- Link generated with jump2header -->
844
 
844
 
845
 Specifies the over scroll mode.
845
 Specifies the over scroll mode.
846
 
846
 
856
 
856
 
857
 ---
857
 ---
858
 
858
 
859
-### `contentInset`
859
+### `contentInset`[⬆](#props-index)<!-- Link generated with jump2header -->
860
 
860
 
861
 The amount by which the web view content is inset from the edges of the scroll view. Defaults to {top: 0, left: 0, bottom: 0, right: 0}.
861
 The amount by which the web view content is inset from the edges of the scroll view. Defaults to {top: 0, left: 0, bottom: 0, right: 0}.
862
 
862
 
866
 
866
 
867
 ---
867
 ---
868
 
868
 
869
-### `contentInsetAdjustmentBehavior`
869
+### `contentInsetAdjustmentBehavior`[⬆](#props-index)<!-- Link generated with jump2header -->
870
 
870
 
871
 This property specifies how the safe area insets are used to modify the content area of the scroll view. The default value of this property is "never". Available on iOS 11 and later. Defaults to `never`.
871
 This property specifies how the safe area insets are used to modify the content area of the scroll view. The default value of this property is "never". Available on iOS 11 and later. Defaults to `never`.
872
 
872
 
883
 
883
 
884
 ---
884
 ---
885
 
885
 
886
-### `dataDetectorTypes`
886
+### `dataDetectorTypes`[⬆](#props-index)<!-- Link generated with jump2header -->
887
 
887
 
888
 Determines the types of data converted to clickable URLs in the web view's content. By default only phone numbers are detected.
888
 Determines the types of data converted to clickable URLs in the web view's content. By default only phone numbers are detected.
889
 
889
 
907
 
907
 
908
 ---
908
 ---
909
 
909
 
910
-### `scrollEnabled`
910
+### `scrollEnabled`[⬆](#props-index)<!-- Link generated with jump2header -->
911
 
911
 
912
 Boolean value that determines whether scrolling is enabled in the `WebView`. The default value is `true`. Setting this to `false` will prevent the webview from moving the document body when the keyboard appears over an input.
912
 Boolean value that determines whether scrolling is enabled in the `WebView`. The default value is `true`. Setting this to `false` will prevent the webview from moving the document body when the keyboard appears over an input.
913
 
913
 
917
 
917
 
918
 ---
918
 ---
919
 
919
 
920
-### `directionalLockEnabled`
920
+### `directionalLockEnabled`[⬆](#props-index)<!-- Link generated with jump2header -->
921
 
921
 
922
 A Boolean value that determines whether scrolling is disabled in a particular direction.
922
 A Boolean value that determines whether scrolling is disabled in a particular direction.
923
 The default value is `true`.
923
 The default value is `true`.
928
 
928
 
929
 ---
929
 ---
930
 
930
 
931
-### `showsHorizontalScrollIndicator`
931
+### `showsHorizontalScrollIndicator`[⬆](#props-index)<!-- Link generated with jump2header -->
932
 
932
 
933
 Boolean value that determines whether a horizontal scroll indicator is shown in the `WebView`. The default value is `true`.
933
 Boolean value that determines whether a horizontal scroll indicator is shown in the `WebView`. The default value is `true`.
934
 
934
 
938
 
938
 
939
 ---
939
 ---
940
 
940
 
941
-### `showsVerticalScrollIndicator`
941
+### `showsVerticalScrollIndicator`[⬆](#props-index)<!-- Link generated with jump2header -->
942
 
942
 
943
 Boolean value that determines whether a vertical scroll indicator is shown in the `WebView`. The default value is `true`.
943
 Boolean value that determines whether a vertical scroll indicator is shown in the `WebView`. The default value is `true`.
944
 
944
 
948
 
948
 
949
 ---
949
 ---
950
 
950
 
951
-### `geolocationEnabled`
951
+### `geolocationEnabled`[⬆](#props-index)<!-- Link generated with jump2header -->
952
 
952
 
953
 Set whether Geolocation is enabled in the `WebView`. The default value is `false`. Used only in Android.
953
 Set whether Geolocation is enabled in the `WebView`. The default value is `false`. Used only in Android.
954
 
954
 
958
 
958
 
959
 ---
959
 ---
960
 
960
 
961
-### `allowFileAccessFromFileURLs`
961
+### `allowFileAccessFromFileURLs`[⬆](#props-index)<!-- Link generated with jump2header -->
962
 
962
 
963
 Boolean that sets whether JavaScript running in the context of a file scheme URL should be allowed to access content from other file scheme URLs. The default value is `false`.
963
 Boolean that sets whether JavaScript running in the context of a file scheme URL should be allowed to access content from other file scheme URLs. The default value is `false`.
964
 
964
 
968
 
968
 
969
 ---
969
 ---
970
 
970
 
971
-### `allowUniversalAccessFromFileURLs`
971
+### `allowUniversalAccessFromFileURLs`[⬆](#props-index)<!-- Link generated with jump2header -->
972
 
972
 
973
 Boolean that sets whether JavaScript running in the context of a file scheme URL should be allowed to access content from any origin. Including accessing content from other file scheme URLs. The default value is `false`.
973
 Boolean that sets whether JavaScript running in the context of a file scheme URL should be allowed to access content from any origin. Including accessing content from other file scheme URLs. The default value is `false`.
974
 
974
 
978
 
978
 
979
 ---
979
 ---
980
 
980
 
981
-### `allowingReadAccessToURL`
981
+### `allowingReadAccessToURL`[⬆](#props-index)<!-- Link generated with jump2header -->
982
 
982
 
983
 A String value that indicates which URLs the WebView's file can then reference in scripts, AJAX requests, and CSS imports. This is only used in for WebViews that are loaded with a source.uri set to a `'file://'` URL. If not provided, the default is to only allow read access to the URL provided in source.uri itself.
983
 A String value that indicates which URLs the WebView's file can then reference in scripts, AJAX requests, and CSS imports. This is only used in for WebViews that are loaded with a source.uri set to a `'file://'` URL. If not provided, the default is to only allow read access to the URL provided in source.uri itself.
984
 
984
 
988
 
988
 
989
 ---
989
 ---
990
 
990
 
991
-### `url`
991
+### `url`[⬆](#props-index)<!-- Link generated with jump2header -->
992
 
992
 
993
 **Deprecated.** Use the `source` prop instead.
993
 **Deprecated.** Use the `source` prop instead.
994
 
994
 
998
 
998
 
999
 ---
999
 ---
1000
 
1000
 
1001
-### `html`
1001
+### `html`[⬆](#props-index)<!-- Link generated with jump2header -->
1002
 
1002
 
1003
 **Deprecated.** Use the `source` prop instead.
1003
 **Deprecated.** Use the `source` prop instead.
1004
 
1004
 
1008
 
1008
 
1009
 ---
1009
 ---
1010
 
1010
 
1011
-### `keyboardDisplayRequiresUserAction`
1011
+### `keyboardDisplayRequiresUserAction`[⬆](#props-index)<!-- Link generated with jump2header -->
1012
 
1012
 
1013
 If false, web content can programmatically display the keyboard. The default value is `true`.
1013
 If false, web content can programmatically display the keyboard. The default value is `true`.
1014
 
1014
 
1018
 
1018
 
1019
 ---
1019
 ---
1020
 
1020
 
1021
-### `hideKeyboardAccessoryView`
1021
+### `hideKeyboardAccessoryView`[⬆](#props-index)<!-- Link generated with jump2header -->
1022
 
1022
 
1023
 If true, this will hide the keyboard accessory view (< > and Done).
1023
 If true, this will hide the keyboard accessory view (< > and Done).
1024
 
1024
 
1028
 
1028
 
1029
 ---
1029
 ---
1030
 
1030
 
1031
-### `allowsBackForwardNavigationGestures`
1031
+### `allowsBackForwardNavigationGestures`[⬆](#props-index)<!-- Link generated with jump2header -->
1032
 
1032
 
1033
 If true, this will be able horizontal swipe gestures. The default value is `false`.
1033
 If true, this will be able horizontal swipe gestures. The default value is `false`.
1034
 
1034
 
1038
 
1038
 
1039
 ---
1039
 ---
1040
 
1040
 
1041
-### `incognito`
1041
+### `incognito`[⬆](#props-index)<!-- Link generated with jump2header -->
1042
 
1042
 
1043
 Does not store any data within the lifetime of the WebView.
1043
 Does not store any data within the lifetime of the WebView.
1044
 
1044
 
1048
 
1048
 
1049
 ---
1049
 ---
1050
 
1050
 
1051
-### `allowFileAccess`
1051
+### `allowFileAccess`[⬆](#props-index)<!-- Link generated with jump2header -->
1052
 
1052
 
1053
 If true, this will allow access to the file system via `file://` URI's. The default value is `false`.
1053
 If true, this will allow access to the file system via `file://` URI's. The default value is `false`.
1054
 
1054
 
1058
 
1058
 
1059
 ---
1059
 ---
1060
 
1060
 
1061
-### `saveFormDataDisabled`
1061
+### `saveFormDataDisabled`[⬆](#props-index)<!-- Link generated with jump2header -->
1062
 
1062
 
1063
 Sets whether the WebView should disable saving form data. The default value is `false`. This function does not have any effect from Android API level 26 onwards as there is an Autofill feature which stores form data.
1063
 Sets whether the WebView should disable saving form data. The default value is `false`. This function does not have any effect from Android API level 26 onwards as there is an Autofill feature which stores form data.
1064
 
1064
 
1068
 
1068
 
1069
 ---
1069
 ---
1070
 
1070
 
1071
-### `cacheEnabled`
1071
+### `cacheEnabled`[⬆](#props-index)<!-- Link generated with jump2header -->
1072
 
1072
 
1073
 Sets whether WebView should use browser caching.
1073
 Sets whether WebView should use browser caching.
1074
 
1074
 
1078
 
1078
 
1079
 ---
1079
 ---
1080
 
1080
 
1081
-### `cacheMode`
1081
+### `cacheMode`[⬆](#props-index)<!-- Link generated with jump2header -->
1082
 
1082
 
1083
 Overrides the way the cache is used. The way the cache is used is based on the navigation type. For a normal page load, the cache is checked and content is re-validated as needed. When navigating back, content is not revalidated, instead the content is just retrieved from the cache. This property allows the client to override this behavior.
1083
 Overrides the way the cache is used. The way the cache is used is based on the navigation type. For a normal page load, the cache is checked and content is re-validated as needed. When navigating back, content is not revalidated, instead the content is just retrieved from the cache. This property allows the client to override this behavior.
1084
 
1084
 
1095
 
1095
 
1096
 ---
1096
 ---
1097
 
1097
 
1098
-### `pagingEnabled`
1098
+### `pagingEnabled`[⬆](#props-index)<!-- Link generated with jump2header -->
1099
 
1099
 
1100
 If the value of this property is true, the scroll view stops on multiples of the scroll view’s bounds when the user scrolls. The default value is false.
1100
 If the value of this property is true, the scroll view stops on multiples of the scroll view’s bounds when the user scrolls. The default value is false.
1101
 
1101
 
1105
 
1105
 
1106
 ---
1106
 ---
1107
 
1107
 
1108
-### `allowsLinkPreview`
1108
+### `allowsLinkPreview`[⬆](#props-index)<!-- Link generated with jump2header -->
1109
 
1109
 
1110
 A Boolean value that determines whether pressing on a link displays a preview of the destination for the link. In iOS this property is available on devices that support 3D Touch. In iOS 10 and later, the default value is true; before that, the default value is false.
1110
 A Boolean value that determines whether pressing on a link displays a preview of the destination for the link. In iOS this property is available on devices that support 3D Touch. In iOS 10 and later, the default value is true; before that, the default value is false.
1111
 
1111
 
1115
 
1115
 
1116
 ---
1116
 ---
1117
 
1117
 
1118
-### `sharedCookiesEnabled`
1118
+### `sharedCookiesEnabled`[⬆](#props-index)<!-- Link generated with jump2header -->
1119
 
1119
 
1120
 Set `true` if shared cookies from `[NSHTTPCookieStorage sharedHTTPCookieStorage]` should used for every load request in the WebView. The default value is `false`. For more on cookies, read the [Guide](Guide.md#Managing-Cookies)
1120
 Set `true` if shared cookies from `[NSHTTPCookieStorage sharedHTTPCookieStorage]` should used for every load request in the WebView. The default value is `false`. For more on cookies, read the [Guide](Guide.md#Managing-Cookies)
1121
 
1121
 
1125
 
1125
 
1126
 ---
1126
 ---
1127
 
1127
 
1128
-### `textZoom`
1128
+### `textZoom`[⬆](#props-index)<!-- Link generated with jump2header -->
1129
 
1129
 
1130
 If the user has set a custom font size in the Android system, an undesirable scale of the site interface in WebView occurs.
1130
 If the user has set a custom font size in the Android system, an undesirable scale of the site interface in WebView occurs.
1131
 
1131
 
1139
 
1139
 
1140
 `<WebView textZoom={100} />`
1140
 `<WebView textZoom={100} />`
1141
 
1141
 
1142
-### `ignoreSilentHardwareSwitch`
1142
+### `ignoreSilentHardwareSwitch`[⬆](#props-index)<!-- Link generated with jump2header -->
1143
 
1143
 
1144
 (ios only)
1144
 (ios only)
1145
 
1145
 
1149
 | ------- | -------- | -------- |
1149
 | ------- | -------- | -------- |
1150
 | boolean | No       | iOS      |
1150
 | boolean | No       | iOS      |
1151
 
1151
 
1152
-### `onFileDownload`
1152
+### `onFileDownload`[⬆](#props-index)<!-- Link generated with jump2header -->
1153
 This property is iOS-only.
1153
 This property is iOS-only.
1154
 
1154
 
1155
 Function that is invoked when the client needs to download a file.
1155
 Function that is invoked when the client needs to download a file.
1183
 
1183
 
1184
 ## Methods
1184
 ## Methods
1185
 
1185
 
1186
-### `extraNativeComponentConfig()`
1186
+### `extraNativeComponentConfig()`[⬆](#methods-index)<!-- Link generated with jump2header -->
1187
 
1187
 
1188
 ```javascript
1188
 ```javascript
1189
 static extraNativeComponentConfig()
1189
 static extraNativeComponentConfig()
1190
 ```
1190
 ```
1191
 
1191
 
1192
-### `goForward()`
1192
+### `goForward()`[⬆](#methods-index)<!-- Link generated with jump2header -->
1193
 
1193
 
1194
 ```javascript
1194
 ```javascript
1195
 goForward();
1195
 goForward();
1197
 
1197
 
1198
 Go forward one page in the web view's history.
1198
 Go forward one page in the web view's history.
1199
 
1199
 
1200
-### `goBack()`
1200
+### `goBack()`[⬆](#methods-index)<!-- Link generated with jump2header -->
1201
 
1201
 
1202
 ```javascript
1202
 ```javascript
1203
 goBack();
1203
 goBack();
1205
 
1205
 
1206
 Go back one page in the web view's history.
1206
 Go back one page in the web view's history.
1207
 
1207
 
1208
-### `reload()`
1208
+### `reload()`[⬆](#methods-index)<!-- Link generated with jump2header -->
1209
 
1209
 
1210
 ```javascript
1210
 ```javascript
1211
 reload();
1211
 reload();
1213
 
1213
 
1214
 Reloads the current page.
1214
 Reloads the current page.
1215
 
1215
 
1216
-### `stopLoading()`
1216
+### `stopLoading()`[⬆](#methods-index)<!-- Link generated with jump2header -->
1217
 
1217
 
1218
 ```javascript
1218
 ```javascript
1219
 stopLoading();
1219
 stopLoading();
1221
 
1221
 
1222
 Stop loading the current page.
1222
 Stop loading the current page.
1223
 
1223
 
1224
-### `injectJavaScript(str)`
1224
+### `injectJavaScript(str)`[⬆](#methods-index)<!-- Link generated with jump2header -->
1225
 
1225
 
1226
 ```javascript
1226
 ```javascript
1227
 injectJavaScript('... javascript string ...');
1227
 injectJavaScript('... javascript string ...');
1231
 
1231
 
1232
 To learn more, read the [Communicating between JS and Native](Guide.md#communicating-between-js-and-native) guide.
1232
 To learn more, read the [Communicating between JS and Native](Guide.md#communicating-between-js-and-native) guide.
1233
 
1233
 
1234
-### `requestFocus()`
1234
+### `requestFocus()`[⬆](#methods-index)<!-- Link generated with jump2header -->
1235
 
1235
 
1236
 ```javascript
1236
 ```javascript
1237
 requestFocus();
1237
 requestFocus();
1239
 
1239
 
1240
 Request the webView to ask for focus. (People working on TV apps might want having a look at this!)
1240
 Request the webView to ask for focus. (People working on TV apps might want having a look at this!)
1241
 
1241
 
1242
-### `postMessage(str)`
1242
+### `postMessage(str)`[⬆](#methods-index)<!-- Link generated with jump2header -->
1243
 
1243
 
1244
 ```javascript
1244
 ```javascript
1245
 postMessage('message');
1245
 postMessage('message');
1246
 ```
1246
 ```
1247
 Post a message to WebView, handled by [`onMessage`](Reference.md#onmessage).
1247
 Post a message to WebView, handled by [`onMessage`](Reference.md#onmessage).
1248
 
1248
 
1249
-### `clearFormData()`
1249
+### `clearFormData()`[⬆](#methods-index)<!-- Link generated with jump2header -->
1250
 
1250
 
1251
 (android only)
1251
 (android only)
1252
 
1252
 
1256
 
1256
 
1257
 Removes the autocomplete popup from the currently focused form field, if present. [developer.android.com reference](<https://developer.android.com/reference/android/webkit/WebView.html#clearFormData()>)
1257
 Removes the autocomplete popup from the currently focused form field, if present. [developer.android.com reference](<https://developer.android.com/reference/android/webkit/WebView.html#clearFormData()>)
1258
 
1258
 
1259
-### `clearCache(bool)`
1259
+### `clearCache(bool)`[⬆](#methods-index)<!-- Link generated with jump2header -->
1260
 
1260
 
1261
 (android only)
1261
 (android only)
1262
 
1262
 
1266
 
1266
 
1267
 Clears the resource cache. Note that the cache is per-application, so this will clear the cache for all WebViews used. [developer.android.com reference](<https://developer.android.com/reference/android/webkit/WebView.html#clearCache(boolean)>)
1267
 Clears the resource cache. Note that the cache is per-application, so this will clear the cache for all WebViews used. [developer.android.com reference](<https://developer.android.com/reference/android/webkit/WebView.html#clearCache(boolean)>)
1268
 
1268
 
1269
-### `clearHistory()`
1269
+### `clearHistory()`[⬆](#methods-index)<!-- Link generated with jump2header -->
1270
 
1270
 
1271
 (android only)
1271
 (android only)
1272
 
1272