Browse Source

chore(docs): Update React Native links to reactnative.dev (#1233)

Luciano Lima 4 years ago
parent
commit
86c44588f8
No account linked to committer's email address
8 changed files with 71 additions and 72 deletions
  1. 1
    3
      README.md
  2. 1
    1
      bin/setup
  3. 14
    14
      docs/Custom-Android.md
  4. 9
    6
      docs/Getting-Started.md
  5. 7
    12
      docs/Guide.md
  6. 1
    3
      docs/README.portuguese.md
  7. 36
    31
      docs/Reference.md
  8. 2
    2
      example/android/app/build.gradle

+ 1
- 3
README.md View File

65
 // ...
65
 // ...
66
 class MyWebComponent extends Component {
66
 class MyWebComponent extends Component {
67
   render() {
67
   render() {
68
-    return (
69
-      <WebView source={{ uri: 'https://facebook.github.io/react-native/' }} />
70
-    );
68
+    return <WebView source={{ uri: 'https://reactnative.dev/' }} />;
71
   }
69
   }
72
 }
70
 }
73
 ```
71
 ```

+ 1
- 1
bin/setup View File

18
 # React Native installed?
18
 # React Native installed?
19
 if ! [ -x "$(command -v react-native)" ]; then
19
 if ! [ -x "$(command -v react-native)" ]; then
20
   echo 'Error: React Native is not installed.' >&2
20
   echo 'Error: React Native is not installed.' >&2
21
-  echo 'Go here: https://facebook.github.io/react-native/docs/getting-started.html' >&2
21
+  echo 'Go here: https://reactnative.dev/docs/getting-started.html' >&2
22
   echo 'Use the "Building Projects With Native Code" option.'
22
   echo 'Use the "Building Projects With Native Code" option.'
23
   exit 1
23
   exit 1
24
 fi
24
 fi

+ 14
- 14
docs/Custom-Android.md View File

1
 While the built-in web view has a lot of features, it is not possible to handle every use-case in React Native. You can, however, extend the web view with native code without forking React Native or duplicating all the existing web view code.
1
 While the built-in web view has a lot of features, it is not possible to handle every use-case in React Native. You can, however, extend the web view with native code without forking React Native or duplicating all the existing web view code.
2
 
2
 
3
-Before you do this, you should be familiar with the concepts in [native UI components](https://facebook.github.io/react-native/docs/native-components-android). You should also familiarise yourself with the [native code for web views](https://github.com/facebook/react-native/blob/master/ReactAndroid/src/main/java/com/facebook/react/views/webview/ReactWebViewManager.java), as you will have to use this as a reference when implementing new features—although a deep understanding is not required.
3
+Before you do this, you should be familiar with the concepts in [native UI components](https://reactnative.dev/docs/native-components-android). You should also familiarise yourself with the [native code for web views](https://github.com/facebook/react-native/blob/master/ReactAndroid/src/main/java/com/facebook/react/views/webview/ReactWebViewManager.java), as you will have to use this as a reference when implementing new features—although a deep understanding is not required.
4
 
4
 
5
 ## Native Code
5
 ## Native Code
6
 
6
 
7
 To get started, you'll need to create a subclass of `RNCWebViewManager`, `RNCWebView`, and `ReactWebViewClient`. In your view manager, you'll then need to override:
7
 To get started, you'll need to create a subclass of `RNCWebViewManager`, `RNCWebView`, and `ReactWebViewClient`. In your view manager, you'll then need to override:
8
 
8
 
9
-* `createReactWebViewInstance`
10
-* `getName`
11
-* `addEventEmitters`
9
+- `createReactWebViewInstance`
10
+- `getName`
11
+- `addEventEmitters`
12
 
12
 
13
 ```java
13
 ```java
14
 @ReactModule(name = CustomWebViewManager.REACT_CLASS)
14
 @ReactModule(name = CustomWebViewManager.REACT_CLASS)
168
 
168
 
169
 To use your custom web view, you'll need to create a class for it. Your class must:
169
 To use your custom web view, you'll need to create a class for it. Your class must:
170
 
170
 
171
-* Export all the prop types from `WebView.propTypes`
172
-* Return a `WebView` component with the prop `nativeConfig.component` set to your native component (see below)
171
+- Export all the prop types from `WebView.propTypes`
172
+- Return a `WebView` component with the prop `nativeConfig.component` set to your native component (see below)
173
 
173
 
174
 To get your native component, you must use `requireNativeComponent`: the same as for regular custom components. However, you must pass in an extra third argument, `WebView.extraNativeComponentConfig`. This third argument contains prop types that are only required for native code.
174
 To get your native component, you must use `requireNativeComponent`: the same as for regular custom components. However, you must pass in an extra third argument, `WebView.extraNativeComponentConfig`. This third argument contains prop types that are only required for native code.
175
 
175
 
176
 ```javascript
176
 ```javascript
177
-import React, {Component, PropTypes} from 'react';
178
-import {requireNativeComponent} from 'react-native';
179
-import {WebView} from 'react-native-webview';
177
+import React, { Component, PropTypes } from 'react';
178
+import { requireNativeComponent } from 'react-native';
179
+import { WebView } from 'react-native-webview';
180
 
180
 
181
 export default class CustomWebView extends Component {
181
 export default class CustomWebView extends Component {
182
   static propTypes = WebView.propTypes;
182
   static propTypes = WebView.propTypes;
183
 
183
 
184
   render() {
184
   render() {
185
     return (
185
     return (
186
-      <WebView {...this.props} nativeConfig={{component: RCTCustomWebView}} />
186
+      <WebView {...this.props} nativeConfig={{ component: RCTCustomWebView }} />
187
     );
187
     );
188
   }
188
   }
189
 }
189
 }
191
 const RCTCustomWebView = requireNativeComponent(
191
 const RCTCustomWebView = requireNativeComponent(
192
   'RCTCustomWebView',
192
   'RCTCustomWebView',
193
   CustomWebView,
193
   CustomWebView,
194
-  WebView.extraNativeComponentConfig
194
+  WebView.extraNativeComponentConfig,
195
 );
195
 );
196
 ```
196
 ```
197
 
197
 
213
     finalUrl: 'about:blank',
213
     finalUrl: 'about:blank',
214
   };
214
   };
215
 
215
 
216
-  _onNavigationCompleted = (event) => {
217
-    const {onNavigationCompleted} = this.props;
216
+  _onNavigationCompleted = event => {
217
+    const { onNavigationCompleted } = this.props;
218
     onNavigationCompleted && onNavigationCompleted(event);
218
     onNavigationCompleted && onNavigationCompleted(event);
219
   };
219
   };
220
 
220
 
249
       ...WebView.extraNativeComponentConfig.nativeOnly,
249
       ...WebView.extraNativeComponentConfig.nativeOnly,
250
       onScrollToBottom: true,
250
       onScrollToBottom: true,
251
     },
251
     },
252
-  }
252
+  },
253
 );
253
 );
254
 ```
254
 ```

+ 9
- 6
docs/Getting-Started.md View File

7
 ```
7
 ```
8
 $ yarn add react-native-webview
8
 $ yarn add react-native-webview
9
 ```
9
 ```
10
- (or)
11
- 
12
- For npm use
10
+
11
+(or)
12
+
13
+For npm use
14
+
13
 ```
15
 ```
14
 $ npm install --save react-native-webview
16
 $ npm install --save react-native-webview
15
 ```
17
 ```
29
 ### iOS:
31
 ### iOS:
30
 
32
 
31
 If using cocoapods in the `ios/` directory run
33
 If using cocoapods in the `ios/` directory run
34
+
32
 ```
35
 ```
33
 $ pod install
36
 $ pod install
34
 ```
37
 ```
35
 
38
 
36
-For iOS, while you can manually link the old way using [react-native own tutorial](https://facebook.github.io/react-native/docs/linking-libraries-ios), we find it easier to use cocoapods.
39
+For iOS, while you can manually link the old way using [react-native own tutorial](https://reactnative.dev/docs/linking-libraries-ios), we find it easier to use cocoapods.
37
 If you wish to use cocoapods and haven't set it up yet, please instead refer to [that article](https://engineering.brigad.co/demystifying-react-native-modules-linking-ae6c017a6b4a).
40
 If you wish to use cocoapods and haven't set it up yet, please instead refer to [that article](https://engineering.brigad.co/demystifying-react-native-modules-linking-ae6c017a6b4a).
38
 
41
 
39
 ### Android:
42
 ### Android:
53
 
56
 
54
 ### macOS:
57
 ### macOS:
55
 
58
 
56
-Cocoapod and autolinking is not yet support for react-native macOS but is coming soon.  In the meantime you must manually link.
59
+Cocoapod and autolinking is not yet support for react-native macOS but is coming soon. In the meantime you must manually link.
57
 
60
 
58
-The method is nearly identical to the [manual linking method for iOS](https://facebook.github.io/react-native/docs/linking-libraries-ios#manual-linking) except that you will include the `node_modules/react-native-webview/macos/RNCWebView.xcodeproj` project in your main project and link the `RNCWebView-macOS.a` library. 
61
+The method is nearly identical to the [manual linking method for iOS](https://reactnative.dev/docs/linking-libraries-ios#manual-linking) except that you will include the `node_modules/react-native-webview/macos/RNCWebView.xcodeproj` project in your main project and link the `RNCWebView-macOS.a` library.
59
 
62
 
60
 ## 3. Import the webview into your component
63
 ## 3. Import the webview into your component
61
 
64
 

+ 7
- 12
docs/Guide.md View File

48
 
48
 
49
 class MyWeb extends Component {
49
 class MyWeb extends Component {
50
   render() {
50
   render() {
51
-    return (
52
-      <WebView source={{ uri: 'https://facebook.github.io/react-native/' }} />
53
-    );
51
+    return <WebView source={{ uri: 'https://reactnative.dev/' }} />;
54
   }
52
   }
55
 }
53
 }
56
 ```
54
 ```
63
 import React, { Component } from 'react';
61
 import React, { Component } from 'react';
64
 import { WebView } from 'react-native-webview';
62
 import { WebView } from 'react-native-webview';
65
 
63
 
66
-const myHtmlFile = require("./my-asset-folder/local-site.html");
64
+const myHtmlFile = require('./my-asset-folder/local-site.html');
67
 
65
 
68
 class MyWeb extends Component {
66
 class MyWeb extends Component {
69
   render() {
67
   render() {
70
-    return (
71
-      <WebView source={myHtmlFile} />
72
-    );
68
+    return <WebView source={myHtmlFile} />;
73
   }
69
   }
74
 }
70
 }
75
 ```
71
 ```
83
 class MyWeb extends Component {
79
 class MyWeb extends Component {
84
   render() {
80
   render() {
85
     return (
81
     return (
86
-      <WebView source={{ uri: "file:///android_asset/local-site.html" }} />
82
+      <WebView source={{ uri: 'file:///android_asset/local-site.html' }} />
87
     );
83
     );
88
   }
84
   }
89
 }
85
 }
104
     return (
100
     return (
105
       <WebView
101
       <WebView
106
         ref={ref => (this.webview = ref)}
102
         ref={ref => (this.webview = ref)}
107
-        source={{ uri: 'https://facebook.github.io/react-native/' }}
103
+        source={{ uri: 'https://reactnative.dev/' }}
108
         onNavigationStateChange={this.handleWebViewNavigationStateChange}
104
         onNavigationStateChange={this.handleWebViewNavigationStateChange}
109
       />
105
       />
110
     );
106
     );
141
 
137
 
142
     // redirect somewhere else
138
     // redirect somewhere else
143
     if (url.includes('google.com')) {
139
     if (url.includes('google.com')) {
144
-      const newURL = 'https://facebook.github.io/react-native/';
140
+      const newURL = 'https://reactnative.dev/';
145
       const redirectTo = 'window.location = "' + newURL + '"';
141
       const redirectTo = 'window.location = "' + newURL + '"';
146
       this.webview.injectJavaScript(redirectTo);
142
       this.webview.injectJavaScript(redirectTo);
147
     }
143
     }
195
 
191
 
196
 If the file input indicates that images or video is desired with [`accept`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept), then the WebView will attempt to provide options to the user to use their camera to take a picture or video.
192
 If the file input indicates that images or video is desired with [`accept`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept), then the WebView will attempt to provide options to the user to use their camera to take a picture or video.
197
 
193
 
198
-Normally, apps that do not have permission to use the camera can prompt the user to use an external app so that the requesting app has no need for permission. However, Android has made a special exception for this around the camera to reduce confusion for users. If an app *can* request the camera permission because it has been declared, and the user has not granted the permission, it may not fire an intent that would use the camera (`MediaStore.ACTION_IMAGE_CAPTURE` or `MediaStore.ACTION_VIDEO_CAPTURE`). In this scenario, it is up to the developer to request camera permission before a file upload directly using the camera is necessary.
194
+Normally, apps that do not have permission to use the camera can prompt the user to use an external app so that the requesting app has no need for permission. However, Android has made a special exception for this around the camera to reduce confusion for users. If an app _can_ request the camera permission because it has been declared, and the user has not granted the permission, it may not fire an intent that would use the camera (`MediaStore.ACTION_IMAGE_CAPTURE` or `MediaStore.ACTION_VIDEO_CAPTURE`). In this scenario, it is up to the developer to request camera permission before a file upload directly using the camera is necessary.
199
 
195
 
200
 ##### Check for File Upload support, with `static isFileUploadSupported()`
196
 ##### Check for File Upload support, with `static isFileUploadSupported()`
201
 
197
 
304
 > On iOS, `injectedJavaScript` runs a method on WebView called `evaluateJavaScript:completionHandler:`
300
 > On iOS, `injectedJavaScript` runs a method on WebView called `evaluateJavaScript:completionHandler:`
305
 > On Android, `injectedJavaScript` runs a method on the Android WebView called `evaluateJavascriptWithFallback`
301
 > On Android, `injectedJavaScript` runs a method on the Android WebView called `evaluateJavascriptWithFallback`
306
 
302
 
307
-
308
 #### The `injectedJavaScriptBeforeContentLoaded` prop
303
 #### The `injectedJavaScriptBeforeContentLoaded` prop
309
 
304
 
310
 This is a script that runs **before** the web page loads for the first time. It only runs once, even if the page is reloaded or navigated away. This is useful if you want to inject anything into the window, localstorage, or document prior to the web code executing.
305
 This is a script that runs **before** the web page loads for the first time. It only runs once, even if the page is reloaded or navigated away. This is useful if you want to inject anything into the window, localstorage, or document prior to the web code executing.

+ 1
- 3
docs/README.portuguese.md View File

62
 // ...
62
 // ...
63
 class MyWebComponent extends Component {
63
 class MyWebComponent extends Component {
64
   render() {
64
   render() {
65
-    return (
66
-      <WebView source={{ uri: 'https://facebook.github.io/react-native/' }} />
67
-    );
65
+    return <WebView source={{ uri: 'https://reactnative.dev/' }} />;
68
   }
66
   }
69
 }
67
 }
70
 ```
68
 ```

+ 36
- 31
docs/Reference.md View File

75
 - [`clearCache`](Reference.md#clearCache)
75
 - [`clearCache`](Reference.md#clearCache)
76
 - [`clearHistory`](Reference.md#clearHistory)
76
 - [`clearHistory`](Reference.md#clearHistory)
77
 - [`requestFocus`](Reference.md#requestFocus)
77
 - [`requestFocus`](Reference.md#requestFocus)
78
+
78
 ---
79
 ---
79
 
80
 
80
 # Reference
81
 # Reference
137
 })();`;
138
 })();`;
138
 
139
 
139
 <WebView
140
 <WebView
140
-  source={{ uri: 'https://facebook.github.io/react-native' }}
141
+  source={{ uri: 'https://reactnative.dev' }}
141
   injectedJavaScript={INJECTED_JAVASCRIPT}
142
   injectedJavaScript={INJECTED_JAVASCRIPT}
142
   onMessage={this.onMessage}
143
   onMessage={this.onMessage}
143
 />;
144
 />;
166
 })();`;
167
 })();`;
167
 
168
 
168
 <WebView
169
 <WebView
169
-  source={{ uri: 'https://facebook.github.io/react-native' }}
170
+  source={{ uri: 'https://reactnative.dev' }}
170
   injectedJavaScriptBeforeContentLoaded={INJECTED_JAVASCRIPT}
171
   injectedJavaScriptBeforeContentLoaded={INJECTED_JAVASCRIPT}
171
   onMessage={this.onMessage}
172
   onMessage={this.onMessage}
172
 />;
173
 />;
214
 
215
 
215
 ```jsx
216
 ```jsx
216
 <WebView
217
 <WebView
217
-  source={{ uri: 'https://facebook.github.io/react-native' }}
218
+  source={{ uri: 'https://reactnative.dev' }}
218
   onError={syntheticEvent => {
219
   onError={syntheticEvent => {
219
     const { nativeEvent } = syntheticEvent;
220
     const { nativeEvent } = syntheticEvent;
220
     console.warn('WebView error: ', nativeEvent);
221
     console.warn('WebView error: ', nativeEvent);
254
 
255
 
255
 ```jsx
256
 ```jsx
256
 <WebView
257
 <WebView
257
-  source={{ uri: 'https://facebook.github.io/react-native' }}
258
+  source={{ uri: 'https://reactnative.dev' }}
258
   onLoad={syntheticEvent => {
259
   onLoad={syntheticEvent => {
259
     const { nativeEvent } = syntheticEvent;
260
     const { nativeEvent } = syntheticEvent;
260
     this.url = nativeEvent.url;
261
     this.url = nativeEvent.url;
287
 
288
 
288
 ```jsx
289
 ```jsx
289
 <WebView
290
 <WebView
290
-  source={{ uri: 'https://facebook.github.io/react-native' }}
291
+  source={{ uri: 'https://reactnative.dev' }}
291
   onLoadEnd={syntheticEvent => {
292
   onLoadEnd={syntheticEvent => {
292
     // update component to be aware of loading status
293
     // update component to be aware of loading status
293
     const { nativeEvent } = syntheticEvent;
294
     const { nativeEvent } = syntheticEvent;
321
 
322
 
322
 ```jsx
323
 ```jsx
323
 <WebView
324
 <WebView
324
-  source={{ uri: 'https://facebook.github.io/react-native/=' }}
325
+  source={{ uri: 'https://reactnative.dev/=' }}
325
   onLoadStart={syntheticEvent => {
326
   onLoadStart={syntheticEvent => {
326
     // update component to be aware of loading status
327
     // update component to be aware of loading status
327
     const { nativeEvent } = syntheticEvent;
328
     const { nativeEvent } = syntheticEvent;
355
 
356
 
356
 ```jsx
357
 ```jsx
357
 <WebView
358
 <WebView
358
-  source={{ uri: 'https://facebook.github.io/react-native' }}
359
+  source={{ uri: 'https://reactnative.dev' }}
359
   onLoadProgress={({ nativeEvent }) => {
360
   onLoadProgress={({ nativeEvent }) => {
360
     this.loadingProgress = nativeEvent.progress;
361
     this.loadingProgress = nativeEvent.progress;
361
   }}
362
   }}
391
 
392
 
392
 ```jsx
393
 ```jsx
393
 <WebView
394
 <WebView
394
-  source={{ uri: 'https://facebook.github.io/react-native' }}
395
+  source={{ uri: 'https://reactnative.dev' }}
395
   onHttpError={syntheticEvent => {
396
   onHttpError={syntheticEvent => {
396
     const { nativeEvent } = syntheticEvent;
397
     const { nativeEvent } = syntheticEvent;
397
     console.warn(
398
     console.warn(
446
 
447
 
447
 ```jsx
448
 ```jsx
448
 <WebView
449
 <WebView
449
-  source={{ uri: 'https://facebook.github.io/react-native' }}
450
+  source={{ uri: 'https://reactnative.dev' }}
450
   onNavigationStateChange={navState => {
451
   onNavigationStateChange={navState => {
451
     // Keep track of going back navigation within component
452
     // Keep track of going back navigation within component
452
     this.canGoBack = navState.canGoBack;
453
     this.canGoBack = navState.canGoBack;
482
 
483
 
483
 ```jsx
484
 ```jsx
484
 <WebView
485
 <WebView
485
-  source={{ uri: 'https://facebook.github.io/react-native' }}
486
+  source={{ uri: 'https://reactnative.dev' }}
486
   onContentProcessDidTerminate={syntheticEvent => {
487
   onContentProcessDidTerminate={syntheticEvent => {
487
     const { nativeEvent } = syntheticEvent;
488
     const { nativeEvent } = syntheticEvent;
488
     console.warn('Content process terminated, reloading', nativeEvent);
489
     console.warn('Content process terminated, reloading', nativeEvent);
517
 ```jsx
518
 ```jsx
518
 //only allow URIs that begin with https:// or git://
519
 //only allow URIs that begin with https:// or git://
519
 <WebView
520
 <WebView
520
-  source={{ uri: 'https://facebook.github.io/react-native' }}
521
+  source={{ uri: 'https://reactnative.dev' }}
521
   originWhitelist={['https://*', 'git://*']}
522
   originWhitelist={['https://*', 'git://*']}
522
 />
523
 />
523
 ```
524
 ```
536
 
537
 
537
 ```jsx
538
 ```jsx
538
 <WebView
539
 <WebView
539
-  source={{ uri: 'https://facebook.github.io/react-native' }}
540
+  source={{ uri: 'https://reactnative.dev' }}
540
   renderError={errorName => <Error name={errorName} />}
541
   renderError={errorName => <Error name={errorName} />}
541
 />
542
 />
542
 ```
543
 ```
557
 
558
 
558
 ```jsx
559
 ```jsx
559
 <WebView
560
 <WebView
560
-  source={{ uri: 'https://facebook.github.io/react-native' }}
561
+  source={{ uri: 'https://reactnative.dev' }}
561
   startInLoadingState={true}
562
   startInLoadingState={true}
562
   renderLoading={() => <Loading />}
563
   renderLoading={() => <Loading />}
563
 />
564
 />
589
 
590
 
590
 ```jsx
591
 ```jsx
591
 <WebView
592
 <WebView
592
-  source={{ uri: 'https://facebook.github.io/react-native' }}
593
+  source={{ uri: 'https://reactnative.dev' }}
593
   onShouldStartLoadWithRequest={request => {
594
   onShouldStartLoadWithRequest={request => {
594
     // Only allow navigating within this website
595
     // Only allow navigating within this website
595
-    return request.url.startsWith('https://facebook.github.io/react-native');
596
+    return request.url.startsWith('https://reactnative.dev');
596
   }}
597
   }}
597
 />
598
 />
598
 ```
599
 ```
635
 
636
 
636
 ```jsx
637
 ```jsx
637
 <WebView
638
 <WebView
638
-  source={{ uri: 'https://facebook.github.io/react-native' }}
639
+  source={{ uri: 'https://reactnative.dev' }}
639
   style={{ marginTop: 20 }}
640
   style={{ marginTop: 20 }}
640
 />
641
 />
641
 ```
642
 ```
654
 
655
 
655
 ```jsx
656
 ```jsx
656
 <WebView
657
 <WebView
657
-  source={{ uri: 'https://facebook.github.io/react-native' }}
658
+  source={{ uri: 'https://reactnative.dev' }}
658
   containerStyle={{ marginTop: 20 }}
659
   containerStyle={{ marginTop: 20 }}
659
 />
660
 />
660
 ```
661
 ```
750
 
751
 
751
 ```jsx
752
 ```jsx
752
 <WebView
753
 <WebView
753
-  source={{ uri: 'https://facebook.github.io/react-native' }}
754
+  source={{ uri: 'https://reactnative.dev' }}
754
   applicationNameForUserAgent={'DemoApp/1.1.0'}
755
   applicationNameForUserAgent={'DemoApp/1.1.0'}
755
 />
756
 />
756
 // Resulting User-Agent will look like:
757
 // Resulting User-Agent will look like:
984
 
985
 
985
 If true, this will be able horizontal swipe gestures. The default value is `false`.
986
 If true, this will be able horizontal swipe gestures. The default value is `false`.
986
 
987
 
987
-| Type    | Required | Platform          |
988
-| ------- | -------- | ----------------- |
989
-| boolean | No       | iOS and macOS     |
988
+| Type    | Required | Platform      |
989
+| ------- | -------- | ------------- |
990
+| boolean | No       | iOS and macOS |
990
 
991
 
991
 ---
992
 ---
992
 
993
 
1061
 
1062
 
1062
 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.
1063
 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.
1063
 
1064
 
1064
-| Type    | Required | Platform          |
1065
-| ------- | -------- | ----------------- |
1066
-| boolean | No       | iOS and macOS     |
1065
+| Type    | Required | Platform      |
1066
+| ------- | -------- | ------------- |
1067
+| boolean | No       | iOS and macOS |
1067
 
1068
 
1068
 ---
1069
 ---
1069
 
1070
 
1071
 
1072
 
1072
 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)
1073
 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)
1073
 
1074
 
1074
-| Type    | Required | Platform          |
1075
-| ------- | -------- | ----------------- |
1076
-| boolean | No       | iOS and macOS     |
1075
+| Type    | Required | Platform      |
1076
+| ------- | -------- | ------------- |
1077
+| boolean | No       | iOS and macOS |
1077
 
1078
 
1078
 ---
1079
 ---
1079
 
1080
 
1150
 Request the webView to ask for focus. (People working on TV apps might want having a look at this!)
1151
 Request the webView to ask for focus. (People working on TV apps might want having a look at this!)
1151
 
1152
 
1152
 ### `clearFormData()`
1153
 ### `clearFormData()`
1154
+
1153
 (android only)
1155
 (android only)
1154
 
1156
 
1155
 ```javascript
1157
 ```javascript
1156
 clearFormData();
1158
 clearFormData();
1157
 ```
1159
 ```
1158
-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())
1159
 
1160
 
1161
+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()>)
1160
 
1162
 
1161
 ### `clearCache(bool)`
1163
 ### `clearCache(bool)`
1164
+
1162
 (android only)
1165
 (android only)
1166
+
1163
 ```javascript
1167
 ```javascript
1164
 clearCache(true);
1168
 clearCache(true);
1165
 ```
1169
 ```
1166
 
1170
 
1167
-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))
1168
-
1171
+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)>)
1169
 
1172
 
1170
 ### `clearHistory()`
1173
 ### `clearHistory()`
1174
+
1171
 (android only)
1175
 (android only)
1176
+
1172
 ```javascript
1177
 ```javascript
1173
 clearHistory();
1178
 clearHistory();
1174
 ```
1179
 ```
1175
 
1180
 
1176
-Tells this WebView to clear its internal back/forward list. [developer.android.com reference](https://developer.android.com/reference/android/webkit/WebView.html#clearHistory())
1181
+Tells this WebView to clear its internal back/forward list. [developer.android.com reference](<https://developer.android.com/reference/android/webkit/WebView.html#clearHistory()>)
1177
 
1182
 
1178
 ## Other Docs
1183
 ## Other Docs
1179
 
1184
 

+ 2
- 2
example/android/app/build.gradle View File

18
  *   // the entry file for bundle generation
18
  *   // the entry file for bundle generation
19
  *   entryFile: "index.android.js",
19
  *   entryFile: "index.android.js",
20
  *
20
  *
21
- *   // https://facebook.github.io/react-native/docs/performance#enable-the-ram-format
21
+ *   // https://reactnative.dev/docs/performance#enable-the-ram-format
22
  *   bundleCommand: "ram-bundle",
22
  *   bundleCommand: "ram-bundle",
23
  *
23
  *
24
  *   // whether to bundle JS and assets in debug mode
24
  *   // whether to bundle JS and assets in debug mode
158
         }
158
         }
159
         release {
159
         release {
160
             // Caution! In production, you need to generate your own keystore file.
160
             // Caution! In production, you need to generate your own keystore file.
161
-            // see https://facebook.github.io/react-native/docs/signed-apk-android.
161
+            // see https://reactnative.dev/docs/signed-apk-android.
162
             signingConfig signingConfigs.debug
162
             signingConfig signingConfigs.debug
163
             minifyEnabled enableProguardInReleaseBuilds
163
             minifyEnabled enableProguardInReleaseBuilds
164
             proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
164
             proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"