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,9 +65,7 @@ import { WebView } from 'react-native-webview';
65 65
 // ...
66 66
 class MyWebComponent extends Component {
67 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,7 +18,7 @@ fi
18 18
 # React Native installed?
19 19
 if ! [ -x "$(command -v react-native)" ]; then
20 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 22
   echo 'Use the "Building Projects With Native Code" option.'
23 23
   exit 1
24 24
 fi

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

@@ -1,14 +1,14 @@
1 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 5
 ## Native Code
6 6
 
7 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 13
 ```java
14 14
 @ReactModule(name = CustomWebViewManager.REACT_CLASS)
@@ -168,22 +168,22 @@ public class CustomWebViewManager extends RNCWebViewManager {
168 168
 
169 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 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 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 181
 export default class CustomWebView extends Component {
182 182
   static propTypes = WebView.propTypes;
183 183
 
184 184
   render() {
185 185
     return (
186
-      <WebView {...this.props} nativeConfig={{component: RCTCustomWebView}} />
186
+      <WebView {...this.props} nativeConfig={{ component: RCTCustomWebView }} />
187 187
     );
188 188
   }
189 189
 }
@@ -191,7 +191,7 @@ export default class CustomWebView extends Component {
191 191
 const RCTCustomWebView = requireNativeComponent(
192 192
   'RCTCustomWebView',
193 193
   CustomWebView,
194
-  WebView.extraNativeComponentConfig
194
+  WebView.extraNativeComponentConfig,
195 195
 );
196 196
 ```
197 197
 
@@ -213,8 +213,8 @@ export default class CustomWebView extends Component {
213 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 218
     onNavigationCompleted && onNavigationCompleted(event);
219 219
   };
220 220
 
@@ -249,6 +249,6 @@ const RCTCustomWebView = requireNativeComponent(
249 249
       ...WebView.extraNativeComponentConfig.nativeOnly,
250 250
       onScrollToBottom: true,
251 251
     },
252
-  }
252
+  },
253 253
 );
254 254
 ```

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

@@ -7,9 +7,11 @@ Here's how to get started quickly with the React Native WebView.
7 7
 ```
8 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 16
 $ npm install --save react-native-webview
15 17
 ```
@@ -29,11 +31,12 @@ _NOTE: If you ever need to uninstall React Native WebView, run `react-native unl
29 31
 ### iOS:
30 32
 
31 33
 If using cocoapods in the `ios/` directory run
34
+
32 35
 ```
33 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 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 42
 ### Android:
@@ -53,9 +56,9 @@ For Android manual installation, please refer to [this article](https://engineer
53 56
 
54 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 63
 ## 3. Import the webview into your component
61 64
 

+ 7
- 12
docs/Guide.md View File

@@ -48,9 +48,7 @@ import { WebView } from 'react-native-webview';
48 48
 
49 49
 class MyWeb extends Component {
50 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,13 +61,11 @@ Sometimes you would have bundled an HTML file along with the app and would like
63 61
 import React, { Component } from 'react';
64 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 66
 class MyWeb extends Component {
69 67
   render() {
70
-    return (
71
-      <WebView source={myHtmlFile} />
72
-    );
68
+    return <WebView source={myHtmlFile} />;
73 69
   }
74 70
 }
75 71
 ```
@@ -83,7 +79,7 @@ import { WebView } from 'react-native-webview';
83 79
 class MyWeb extends Component {
84 80
   render() {
85 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,7 +100,7 @@ class MyWeb extends Component {
104 100
     return (
105 101
       <WebView
106 102
         ref={ref => (this.webview = ref)}
107
-        source={{ uri: 'https://facebook.github.io/react-native/' }}
103
+        source={{ uri: 'https://reactnative.dev/' }}
108 104
         onNavigationStateChange={this.handleWebViewNavigationStateChange}
109 105
       />
110 106
     );
@@ -141,7 +137,7 @@ class MyWeb extends Component {
141 137
 
142 138
     // redirect somewhere else
143 139
     if (url.includes('google.com')) {
144
-      const newURL = 'https://facebook.github.io/react-native/';
140
+      const newURL = 'https://reactnative.dev/';
145 141
       const redirectTo = 'window.location = "' + newURL + '"';
146 142
       this.webview.injectJavaScript(redirectTo);
147 143
     }
@@ -195,7 +191,7 @@ Add permission in AndroidManifest.xml:
195 191
 
196 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 196
 ##### Check for File Upload support, with `static isFileUploadSupported()`
201 197
 
@@ -304,7 +300,6 @@ _Under the hood_
304 300
 > On iOS, `injectedJavaScript` runs a method on WebView called `evaluateJavaScript:completionHandler:`
305 301
 > On Android, `injectedJavaScript` runs a method on the Android WebView called `evaluateJavascriptWithFallback`
306 302
 
307
-
308 303
 #### The `injectedJavaScriptBeforeContentLoaded` prop
309 304
 
310 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,9 +62,7 @@ import { WebView } from 'react-native-webview';
62 62
 // ...
63 63
 class MyWebComponent extends Component {
64 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,6 +75,7 @@ This document lays out the current public properties and methods for the React N
75 75
 - [`clearCache`](Reference.md#clearCache)
76 76
 - [`clearHistory`](Reference.md#clearHistory)
77 77
 - [`requestFocus`](Reference.md#requestFocus)
78
+
78 79
 ---
79 80
 
80 81
 # Reference
@@ -137,7 +138,7 @@ const INJECTED_JAVASCRIPT = `(function() {
137 138
 })();`;
138 139
 
139 140
 <WebView
140
-  source={{ uri: 'https://facebook.github.io/react-native' }}
141
+  source={{ uri: 'https://reactnative.dev' }}
141 142
   injectedJavaScript={INJECTED_JAVASCRIPT}
142 143
   onMessage={this.onMessage}
143 144
 />;
@@ -166,7 +167,7 @@ const INJECTED_JAVASCRIPT = `(function() {
166 167
 })();`;
167 168
 
168 169
 <WebView
169
-  source={{ uri: 'https://facebook.github.io/react-native' }}
170
+  source={{ uri: 'https://reactnative.dev' }}
170 171
   injectedJavaScriptBeforeContentLoaded={INJECTED_JAVASCRIPT}
171 172
   onMessage={this.onMessage}
172 173
 />;
@@ -214,7 +215,7 @@ Example:
214 215
 
215 216
 ```jsx
216 217
 <WebView
217
-  source={{ uri: 'https://facebook.github.io/react-native' }}
218
+  source={{ uri: 'https://reactnative.dev' }}
218 219
   onError={syntheticEvent => {
219 220
     const { nativeEvent } = syntheticEvent;
220 221
     console.warn('WebView error: ', nativeEvent);
@@ -254,7 +255,7 @@ Example:
254 255
 
255 256
 ```jsx
256 257
 <WebView
257
-  source={{ uri: 'https://facebook.github.io/react-native' }}
258
+  source={{ uri: 'https://reactnative.dev' }}
258 259
   onLoad={syntheticEvent => {
259 260
     const { nativeEvent } = syntheticEvent;
260 261
     this.url = nativeEvent.url;
@@ -287,7 +288,7 @@ Example:
287 288
 
288 289
 ```jsx
289 290
 <WebView
290
-  source={{ uri: 'https://facebook.github.io/react-native' }}
291
+  source={{ uri: 'https://reactnative.dev' }}
291 292
   onLoadEnd={syntheticEvent => {
292 293
     // update component to be aware of loading status
293 294
     const { nativeEvent } = syntheticEvent;
@@ -321,7 +322,7 @@ Example:
321 322
 
322 323
 ```jsx
323 324
 <WebView
324
-  source={{ uri: 'https://facebook.github.io/react-native/=' }}
325
+  source={{ uri: 'https://reactnative.dev/=' }}
325 326
   onLoadStart={syntheticEvent => {
326 327
     // update component to be aware of loading status
327 328
     const { nativeEvent } = syntheticEvent;
@@ -355,7 +356,7 @@ Example:
355 356
 
356 357
 ```jsx
357 358
 <WebView
358
-  source={{ uri: 'https://facebook.github.io/react-native' }}
359
+  source={{ uri: 'https://reactnative.dev' }}
359 360
   onLoadProgress={({ nativeEvent }) => {
360 361
     this.loadingProgress = nativeEvent.progress;
361 362
   }}
@@ -391,7 +392,7 @@ Example:
391 392
 
392 393
 ```jsx
393 394
 <WebView
394
-  source={{ uri: 'https://facebook.github.io/react-native' }}
395
+  source={{ uri: 'https://reactnative.dev' }}
395 396
   onHttpError={syntheticEvent => {
396 397
     const { nativeEvent } = syntheticEvent;
397 398
     console.warn(
@@ -446,7 +447,7 @@ Example:
446 447
 
447 448
 ```jsx
448 449
 <WebView
449
-  source={{ uri: 'https://facebook.github.io/react-native' }}
450
+  source={{ uri: 'https://reactnative.dev' }}
450 451
   onNavigationStateChange={navState => {
451 452
     // Keep track of going back navigation within component
452 453
     this.canGoBack = navState.canGoBack;
@@ -482,7 +483,7 @@ Example:
482 483
 
483 484
 ```jsx
484 485
 <WebView
485
-  source={{ uri: 'https://facebook.github.io/react-native' }}
486
+  source={{ uri: 'https://reactnative.dev' }}
486 487
   onContentProcessDidTerminate={syntheticEvent => {
487 488
     const { nativeEvent } = syntheticEvent;
488 489
     console.warn('Content process terminated, reloading', nativeEvent);
@@ -517,7 +518,7 @@ Example:
517 518
 ```jsx
518 519
 //only allow URIs that begin with https:// or git://
519 520
 <WebView
520
-  source={{ uri: 'https://facebook.github.io/react-native' }}
521
+  source={{ uri: 'https://reactnative.dev' }}
521 522
   originWhitelist={['https://*', 'git://*']}
522 523
 />
523 524
 ```
@@ -536,7 +537,7 @@ Example:
536 537
 
537 538
 ```jsx
538 539
 <WebView
539
-  source={{ uri: 'https://facebook.github.io/react-native' }}
540
+  source={{ uri: 'https://reactnative.dev' }}
540 541
   renderError={errorName => <Error name={errorName} />}
541 542
 />
542 543
 ```
@@ -557,7 +558,7 @@ Example:
557 558
 
558 559
 ```jsx
559 560
 <WebView
560
-  source={{ uri: 'https://facebook.github.io/react-native' }}
561
+  source={{ uri: 'https://reactnative.dev' }}
561 562
   startInLoadingState={true}
562 563
   renderLoading={() => <Loading />}
563 564
 />
@@ -589,10 +590,10 @@ Example:
589 590
 
590 591
 ```jsx
591 592
 <WebView
592
-  source={{ uri: 'https://facebook.github.io/react-native' }}
593
+  source={{ uri: 'https://reactnative.dev' }}
593 594
   onShouldStartLoadWithRequest={request => {
594 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,7 +636,7 @@ Example:
635 636
 
636 637
 ```jsx
637 638
 <WebView
638
-  source={{ uri: 'https://facebook.github.io/react-native' }}
639
+  source={{ uri: 'https://reactnative.dev' }}
639 640
   style={{ marginTop: 20 }}
640 641
 />
641 642
 ```
@@ -654,7 +655,7 @@ Example:
654 655
 
655 656
 ```jsx
656 657
 <WebView
657
-  source={{ uri: 'https://facebook.github.io/react-native' }}
658
+  source={{ uri: 'https://reactnative.dev' }}
658 659
   containerStyle={{ marginTop: 20 }}
659 660
 />
660 661
 ```
@@ -750,7 +751,7 @@ Append to the existing user-agent. Setting `userAgent` will override this.
750 751
 
751 752
 ```jsx
752 753
 <WebView
753
-  source={{ uri: 'https://facebook.github.io/react-native' }}
754
+  source={{ uri: 'https://reactnative.dev' }}
754 755
   applicationNameForUserAgent={'DemoApp/1.1.0'}
755 756
 />
756 757
 // Resulting User-Agent will look like:
@@ -984,9 +985,9 @@ If true, this will hide the keyboard accessory view (< > and Done).
984 985
 
985 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,9 +1062,9 @@ If the value of this property is true, the scroll view stops on multiples of the
1061 1062
 
1062 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,9 +1072,9 @@ A Boolean value that determines whether pressing on a link displays a preview of
1071 1072
 
1072 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,30 +1151,34 @@ requestFocus();
1150 1151
 Request the webView to ask for focus. (People working on TV apps might want having a look at this!)
1151 1152
 
1152 1153
 ### `clearFormData()`
1154
+
1153 1155
 (android only)
1154 1156
 
1155 1157
 ```javascript
1156 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 1163
 ### `clearCache(bool)`
1164
+
1162 1165
 (android only)
1166
+
1163 1167
 ```javascript
1164 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 1173
 ### `clearHistory()`
1174
+
1171 1175
 (android only)
1176
+
1172 1177
 ```javascript
1173 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 1183
 ## Other Docs
1179 1184
 

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

@@ -18,7 +18,7 @@ import com.android.build.OutputFile
18 18
  *   // the entry file for bundle generation
19 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 22
  *   bundleCommand: "ram-bundle",
23 23
  *
24 24
  *   // whether to bundle JS and assets in debug mode
@@ -158,7 +158,7 @@ android {
158 158
         }
159 159
         release {
160 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 162
             signingConfig signingConfigs.debug
163 163
             minifyEnabled enableProguardInReleaseBuilds
164 164
             proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"