{"id":38076,"date":"2023-06-03T06:08:22","date_gmt":"2024-02-24T07:05:35","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e8%af%95%e7%9d%80%e5%bb%ba%e7%ab%8b%e4%ba%86%e4%b8%80%e4%b8%aaweb%e5%ba%94%e7%94%a8%e5%bc%80%e5%8f%91%e7%8e%af%e5%a2%836-react-native6%e3%80%82\/"},"modified":"2024-04-30T07:07:27","modified_gmt":"2024-04-29T23:07:27","slug":"%e6%88%91%e8%af%95%e7%9d%80%e5%bb%ba%e7%ab%8b%e4%ba%86%e4%b8%80%e4%b8%aaweb%e5%ba%94%e7%94%a8%e5%bc%80%e5%8f%91%e7%8e%af%e5%a2%836-react-native6%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e8%af%95%e7%9d%80%e5%bb%ba%e7%ab%8b%e4%ba%86%e4%b8%80%e4%b8%aaweb%e5%ba%94%e7%94%a8%e5%bc%80%e5%8f%91%e7%8e%af%e5%a2%836-react-native6%e3%80%82\/","title":{"rendered":"\u6211\u8bd5\u7740\u5efa\u7acb\u4e86\u4e00\u4e2aWeb\u5e94\u7528\u5f00\u53d1\u73af\u5883(6) &#8211; React Native(6)"},"content":{"rendered":"<p>\u4e0a\u6b21\u7ec8\u4e8e\u6210\u529f\u751f\u6210\u4e86Android\u865a\u62df\u8bbe\u5907\u3002\u8fd8\u9700\u8981\u7a0d\u5fae\u5b8c\u6210\u4e00\u4e9b\u5269\u4f59\u7684\u73af\u5883\u8bbe\u7f6e\uff0c\u6211\u89c9\u5f97\u73b0\u5728\u5dee\u4e0d\u591a\u53ef\u4ee5\u5f00\u59cb\u521b\u5efaReact Native\u5e94\u7528\u7a0b\u5e8f\u4e86\u3002<\/p>\n<p>\u8fd9\u6b21\u6211\u4f7f\u7528\u4e86\u4ee5\u4e0b\u8d44\u6e90\u4f5c\u4e3a\u53c2\u8003\uff1a<br \/>\n\u6574\u7406 React Native \u5f00\u53d1\u73af\u5883\uff08\u5b9e\u8df5 React Native \u5f00\u53d1-\u7b2c0\u7bc7\uff09<br \/>\n\u4e66\u7c4d\uff1aReact Native<\/p>\n<h3>Git\u662f\u4e00\u4e2a\u7248\u672c\u63a7\u5236\u7cfb\u7edf\u3002<\/h3>\n<p>\u6839\u636e\u53c2\u8003\u9875\u9762\u7684\u5efa\u8bae\uff0c\u987a\u4fbf\u5b89\u88c5\u4e86git\u3002\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u6ca1\u6709\u9047\u5230\u4efb\u4f55\u95ee\u9898\u3002<\/p>\n<pre class=\"post-pre\"><code>D:\\&gt;choco install git -y\r\nChocolatey v2.2.2\r\nInstalling the following packages:\r\ngit\r\nBy installing, you accept licenses for the packages.\r\nProgress: Downloading git.install 2.42.0... 100%\r\n\r\ngit.install v2.42.0 [Approved]\r\ngit.install package files install completed. Performing other installation steps.\r\nUsing Git LFS\r\nInstalling 64-bit git.install...\r\ngit.install has been installed.\r\ngit.install installed to 'C:\\Program Files\\Git'\r\n  git.install can be automatically uninstalled.\r\nEnvironment Vars (like PATH) have changed. Close\/reopen your shell to\r\n see the changes (or in powershell\/cmd.exe just type `refreshenv`).\r\n The install of git.install was successful.\r\n  Software installed to 'C:\\Program Files\\Git\\'\r\nProgress: Downloading git 2.42.0... 100%\r\n\r\ngit v2.42.0 [Approved]\r\ngit package files install completed. Performing other installation steps.\r\n The install of git was successful.\r\n  Software installed to 'C:\\ProgramData\\chocolatey\\lib\\git'\r\n\r\nChocolatey installed 2\/2 packages.\r\n See the log for details (C:\\ProgramData\\chocolatey\\logs\\chocolatey.log).\r\n\r\nD:\\&gt;\r\n<\/code><\/pre>\n<h3>\u770b\u5b88\u4eba<\/h3>\n<p>\u8fd9\u662f\u53c2\u8003\u4e66\u7c4d\u7684\u5185\u5bb9\u3002\u8fd9\u4e5f\u6ca1\u95ee\u9898\u3002<\/p>\n<pre class=\"post-pre\"><code>D:\\&gt;choco install watchman -y\r\nChocolatey v2.2.2\r\nInstalling the following packages:\r\nwatchman\r\nBy installing, you accept licenses for the packages.\r\nProgress: Downloading watchman 2023.10.09.00... 100%\r\n\r\nwatchman v2023.10.9 [Approved]\r\nwatchman package files install completed. Performing other installation steps.\r\nExtracting 64-bit C:\\ProgramData\\chocolatey\\lib\\watchman\\tools\\watchman-v2023.10.09.00-windows.zip to C:\\ProgramData\\chocolatey\\lib\\watchman\\tools...\r\nC:\\ProgramData\\chocolatey\\lib\\watchman\\tools\r\nEnvironment Vars (like PATH) have changed. Close\/reopen your shell to\r\n see the changes (or in powershell\/cmd.exe just type `refreshenv`).\r\n ShimGen has successfully created a shim for eledo-pty-bridge.exe\r\n ShimGen has successfully created a shim for watchman-diag.exe\r\n ShimGen has successfully created a shim for watchman-make.exe\r\n ShimGen has successfully created a shim for watchman-replicate-subscription.exe\r\n ShimGen has successfully created a shim for watchman-wait.exe\r\n ShimGen has successfully created a shim for watchman.exe\r\n ShimGen has successfully created a shim for watchmanctl.exe\r\n The install of watchman was successful.\r\n  Software installed to 'C:\\ProgramData\\chocolatey\\lib\\watchman\\tools'\r\n\r\nChocolatey installed 1\/1 packages.\r\n See the log for details (C:\\ProgramData\\chocolatey\\logs\\chocolatey.log).\r\n\r\nD:\\&gt;\r\n<\/code><\/pre>\n<h3>\u5378\u8f7d react-native-cli<\/h3>\n<p>\u8fd9\u672c\u4e66\u4e5f\u6709\u76f8\u5173\u7684\u63cf\u8ff0\u3002\u56e0\u4e3a\u662f\u65b0\u7684\u73af\u5883\u8bbe\u7f6e\uff0c\u867d\u7136\u5e94\u8be5\u6ca1\u6709\u5b89\u88c5\uff0c\u4f46\u8fd8\u662f\u5c1d\u8bd5\u6267\u884c\u786e\u8ba4\u547d\u4ee4\u3002\u6ca1\u6709\u95ee\u9898\u3002<\/p>\n<pre class=\"post-pre\"><code>D:\\&gt;npm ls -g --depth=0\r\nC:\\Program Files\\nodejs -&gt; .\\\r\n+-- corepack@0.22.0\r\n`-- npm@10.2.0\r\n\r\n\r\nD:\\&gt;\r\n<\/code><\/pre>\n<h3>\u5b89\u88c5React Native\u5305<\/h3>\n<p>\u53c2\u8003\u4e66\u7c4d\u4e2d\u63d0\u5230\u4e86\u5b89\u88c5yarn\u7684\u547d\u4ee4\u3002\u867d\u7136\u6ca1\u6709\u660e\u786e\u8bf4\u660e\u9700\u8981\u6309\u7167\u6b65\u9aa4\u6267\u884c\uff0c\u4f46\u6211\u8bd5\u4e86\u4e00\u4e0b\u3002\u7ed3\u679c\u4ed3\u5e93\u6ca1\u6709\u56de\u5e94\u3002<\/p>\n<pre class=\"post-pre\"><code>D:\\&gt;yarn add --exact react-native\r\nyarn add v1.22.19\r\ninfo No lockfile found.\r\n(node:10396) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.\r\n(Use `node --trace-deprecation ...` to show where the warning was created)\r\ninfo There appears to be trouble with your network connection. Retrying...\r\n[1\/4] Resolving packages...\r\ninfo There appears to be trouble with your network connection. Retrying...\r\ninfo There appears to be trouble with your network connection. Retrying...\r\ninfo There appears to be trouble with your network connection. Retrying...\r\nerror An unexpected error occurred: \"https:\/\/registry.yarnpkg.com\/react-native: getaddrinfo ENOTFOUND registry.yarnpkg.com\".\r\ninfo If you think this is a bug, please open a bug report with the information provided in \"D:\\\\yarn-error.log\".\r\ninfo Visit https:\/\/yarnpkg.com\/en\/docs\/cli\/add for documentation about this command.\r\n\r\nD:\\&gt;yarn -?\r\nyarn install v1.22.19\r\ninfo No lockfile found.\r\n(node:9916) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.\r\n(Use `node --trace-deprecation ...` to show where the warning was created)\r\n[1\/4] Resolving packages...\r\n[2\/4] Fetching packages...\r\ninfo There appears to be trouble with your network connection. Retrying...\r\n[3\/4] Linking dependencies...\r\n[4\/4] Building fresh packages...\r\nsuccess Saved lockfile.\r\nDone in 0.14s.\r\ninfo There appears to be trouble with your network connection. Retrying...\r\ninfo There appears to be trouble with your network connection. Retrying...\r\ninfo There appears to be trouble with your network connection. Retrying...\r\n\r\nD:\\&gt;yarn\r\nyarn install v1.22.19\r\n(node:17948) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.\r\n(Use `node --trace-deprecation ...` to show where the warning was created)\r\ninfo There appears to be trouble with your network connection. Retrying...\r\n[1\/4] Resolving packages...\r\nsuccess Already up-to-date.\r\nDone in 0.13s.\r\ninfo There appears to be trouble with your network connection. Retrying...\r\ninfo There appears to be trouble with your network connection. Retrying...\r\ninfo There appears to be trouble with your network connection. Retrying...\r\n\r\nD:\\&gt;\r\n<\/code><\/pre>\n<p>\u4f60\u6ca1\u6709\u8bbe\u7f6e\u4ee3\u7406\u5417\uff1f\u5b89\u88c5\u4e86\u592a\u591a\u8f6f\u4ef6\uff0c\u5df2\u7ecf\u8bb0\u4e0d\u6e05\u5230\u5e95\u505a\u4e86\u4ec0\u4e48\u4e86\u3002<br \/>\n\u91cd\u65b0\u8fdb\u884c\u4ee3\u7406\u8bbe\u7f6e\u3002\u8bed\u6cd5\u68c0\u67e5\u4e5f\u662f\u9a6c\u9a6c\u864e\u864e\u5730\u8fdb\u884c\uff0c\u6240\u4ee5\u624d\u6709\u8fd9\u79cd\u8f93\u51fa\u3002<\/p>\n<pre class=\"post-pre\"><code>D:\\&gt;yarn config set proxy\r\nyarn config v1.22.19\r\nsuccess Set \"proxy\" to true.\r\nDone in 0.04s.\r\n\r\nD:\\&gt;yarn config set proxy http:\/\/XXX.XXX.XXX.XXX:XXXX\r\nyarn config v1.22.19\r\nsuccess Set \"proxy\" to \"http:\/\/XXX.XXX.XXX.XXX:XXXX\".\r\nDone in 0.04s.\r\n\r\nD:\\&gt;\r\n<\/code><\/pre>\n<p>\u91cd\u65b0\u5b89\u88c5React Native\u5305\u3002<\/p>\n<pre class=\"post-pre\"><code>D:\\&gt;yarn add --exact react-native\r\nyarn add v1.22.19\r\n(node:13468) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.\r\n(Use `node --trace-deprecation ...` to show where the warning was created)\r\n[1\/4] Resolving packages...\r\nwarning react-native &gt; @react-native\/codegen &gt; jscodeshift &gt; @babel\/plugin-proposal-class-properties@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel\/plugin-transform-class-properties instead.\r\nwarning react-native &gt; @react-native\/codegen &gt; jscodeshift &gt; @babel\/plugin-proposal-nullish-coalescing-operator@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel\/plugin-transform-nullish-coalescing-operator instead.\r\nwarning react-native &gt; @react-native\/codegen &gt; jscodeshift &gt; @babel\/plugin-proposal-optional-chaining@7.21.0: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel\/plugin-transform-optional-chaining instead.\r\nwarning react-native &gt; @react-native-community\/cli &gt; @react-native-community\/cli-plugin-metro &gt; metro &gt; metro-react-native-babel-preset &gt; @babel\/plugin-proposal-class-properties@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel\/plugin-transform-class-properties instead.\r\nwarning react-native &gt; @react-native-community\/cli &gt; @react-native-community\/cli-plugin-metro &gt; metro &gt; metro-react-native-babel-preset &gt; @babel\/plugin-proposal-nullish-coalescing-operator@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel\/plugin-transform-nullish-coalescing-operator instead.\r\nwarning react-native &gt; @react-native-community\/cli &gt; @react-native-community\/cli-plugin-metro &gt; metro &gt; metro-react-native-babel-preset &gt; @babel\/plugin-proposal-optional-chaining@7.21.0: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel\/plugin-transform-optional-chaining instead.\r\nwarning react-native &gt; @react-native-community\/cli &gt; @react-native-community\/cli-plugin-metro &gt; metro-react-native-babel-transformer &gt; babel-preset-fbjs &gt; @babel\/plugin-proposal-class-properties@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel\/plugin-transform-class-properties instead.\r\nwarning react-native &gt; @react-native-community\/cli &gt; @react-native-community\/cli-plugin-metro &gt; metro &gt; metro-react-native-babel-preset &gt; @babel\/plugin-proposal-async-generator-functions@7.20.7: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel\/plugin-transform-async-generator-functions instead.\r\nwarning react-native &gt; @react-native-community\/cli &gt; @react-native-community\/cli-plugin-metro &gt; metro &gt; metro-minify-uglify &gt; uglify-es@3.3.9: support for ECMAScript is superseded by `uglify-js` as of v3.13.0\r\nwarning react-native &gt; @react-native-community\/cli &gt; @react-native-community\/cli-plugin-metro &gt; metro &gt; metro-react-native-babel-preset &gt; @babel\/plugin-proposal-numeric-separator@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel\/plugin-transform-numeric-separator instead.\r\nwarning react-native &gt; @react-native-community\/cli &gt; @react-native-community\/cli-plugin-metro &gt; metro &gt; metro-react-native-babel-preset &gt; @babel\/plugin-proposal-optional-catch-binding@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel\/plugin-transform-optional-catch-binding instead.\r\nwarning react-native &gt; @react-native-community\/cli &gt; @react-native-community\/cli-plugin-metro &gt; metro &gt; metro-react-native-babel-preset &gt; @babel\/plugin-proposal-object-rest-spread@7.20.7: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel\/plugin-transform-object-rest-spread instead.\r\nwarning react-native &gt; @react-native-community\/cli &gt; @react-native-community\/cli-plugin-metro &gt; metro-react-native-babel-transformer &gt; babel-preset-fbjs &gt; @babel\/plugin-proposal-object-rest-spread@7.20.7: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel\/plugin-transform-object-rest-spread instead.\r\n[2\/4] Fetching packages...\r\ninfo There appears to be trouble with your network connection. Retrying...\r\n[3\/4] Linking dependencies...\r\nwarning \"react-native &gt; @react-native\/codegen@0.72.7\" has unmet peer dependency \"@babel\/preset-env@^7.1.6\".\r\nwarning \"react-native &gt; react-shallow-renderer@16.15.0\" has unmet peer dependency \"react@^16.0.0 || ^17.0.0 || ^18.0.0\".\r\nwarning \"react-native &gt; use-sync-external-store@1.2.0\" has unmet peer dependency \"react@^16.8.0 || ^17.0.0 || ^18.0.0\".\r\nwarning \"react-native &gt; @react-native\/codegen &gt; jscodeshift@0.14.0\" has unmet peer dependency \"@babel\/preset-env@^7.1.6\".\r\nwarning \"react-native &gt; @react-native-community\/cli &gt; @react-native-community\/cli-plugin-metro &gt; metro-react-native-babel-transformer@0.76.8\" has unmet peer dependency \"@babel\/core@*\".\r\nwarning \" &gt; react-native@0.72.7\" has unmet peer dependency \"react@18.2.0\".\r\n[4\/4] Building fresh packages...\r\nsuccess Saved lockfile.\r\nsuccess Saved 337 new dependencies.\r\ninfo Direct dependencies\r\n\u2514\u2500 react-native@0.72.7\r\ninfo All dependencies\r\n\u251c\u2500 @ampproject\/remapping@2.2.1\r\n\u251c\u2500 @babel\/compat-data@7.23.3\r\n\u251c\u2500 @babel\/helper-compilation-targets@7.22.15\r\n\u251c\u2500 @babel\/helper-create-class-features-plugin@7.22.15\r\n\u251c\u2500 @babel\/helper-create-regexp-features-plugin@7.22.15\r\n\u251c\u2500 @babel\/helper-hoist-variables@7.22.5\r\n\u251c\u2500 @babel\/helper-remap-async-to-generator@7.22.20\r\n\u251c\u2500 @babel\/helper-string-parser@7.22.5\r\n\u251c\u2500 @babel\/helper-wrap-function@7.22.20\r\n\u251c\u2500 @babel\/helpers@7.23.2\r\n\u251c\u2500 @babel\/highlight@7.22.20\r\n\u251c\u2500 @babel\/plugin-proposal-async-generator-functions@7.20.7\r\n\u251c\u2500 @babel\/plugin-proposal-class-properties@7.18.6\r\n\u251c\u2500 @babel\/plugin-proposal-export-default-from@7.23.3\r\n\u251c\u2500 @babel\/plugin-proposal-nullish-coalescing-operator@7.18.6\r\n\u251c\u2500 @babel\/plugin-proposal-numeric-separator@7.18.6\r\n\u251c\u2500 @babel\/plugin-proposal-object-rest-spread@7.20.7\r\n\u251c\u2500 @babel\/plugin-proposal-optional-catch-binding@7.18.6\r\n\u251c\u2500 @babel\/plugin-proposal-optional-chaining@7.21.0\r\n\u251c\u2500 @babel\/plugin-syntax-async-generators@7.8.4\r\n\u251c\u2500 @babel\/plugin-syntax-class-properties@7.12.13\r\n\u251c\u2500 @babel\/plugin-syntax-dynamic-import@7.8.3\r\n\u251c\u2500 @babel\/plugin-syntax-export-default-from@7.23.3\r\n\u251c\u2500 @babel\/plugin-syntax-flow@7.23.3\r\n\u251c\u2500 @babel\/plugin-syntax-jsx@7.23.3\r\n\u251c\u2500 @babel\/plugin-syntax-nullish-coalescing-operator@7.8.3\r\n\u251c\u2500 @babel\/plugin-syntax-numeric-separator@7.10.4\r\n\u251c\u2500 @babel\/plugin-syntax-object-rest-spread@7.8.3\r\n\u251c\u2500 @babel\/plugin-syntax-optional-catch-binding@7.8.3\r\n\u251c\u2500 @babel\/plugin-syntax-optional-chaining@7.8.3\r\n\u251c\u2500 @babel\/plugin-syntax-typescript@7.23.3\r\n\u251c\u2500 @babel\/plugin-transform-async-to-generator@7.23.3\r\n\u251c\u2500 @babel\/plugin-transform-block-scoped-functions@7.23.3\r\n\u251c\u2500 @babel\/plugin-transform-destructuring@7.23.3\r\n\u251c\u2500 @babel\/plugin-transform-flow-strip-types@7.23.3\r\n\u251c\u2500 @babel\/plugin-transform-for-of@7.23.3\r\n\u251c\u2500 @babel\/plugin-transform-member-expression-literals@7.23.3\r\n\u251c\u2500 @babel\/plugin-transform-named-capturing-groups-regex@7.22.5\r\n\u251c\u2500 @babel\/plugin-transform-object-super@7.23.3\r\n\u251c\u2500 @babel\/plugin-transform-parameters@7.23.3\r\n\u251c\u2500 @babel\/plugin-transform-property-literals@7.23.3\r\n\u251c\u2500 @babel\/plugin-transform-react-jsx-self@7.23.3\r\n\u251c\u2500 @babel\/plugin-transform-react-jsx-source@7.23.3\r\n\u251c\u2500 @babel\/plugin-transform-runtime@7.23.3\r\n\u251c\u2500 @babel\/plugin-transform-sticky-regex@7.23.3\r\n\u251c\u2500 @babel\/plugin-transform-template-literals@7.23.3\r\n\u251c\u2500 @babel\/plugin-transform-typescript@7.23.3\r\n\u251c\u2500 @babel\/plugin-transform-unicode-regex@7.23.3\r\n\u251c\u2500 @babel\/preset-flow@7.23.3\r\n\u251c\u2500 @babel\/preset-typescript@7.23.3\r\n\u251c\u2500 @babel\/register@7.22.15\r\n\u251c\u2500 @babel\/regjsgen@0.8.0\r\n\u251c\u2500 @babel\/runtime@7.23.2\r\n\u251c\u2500 @babel\/types@7.23.3\r\n\u251c\u2500 @hapi\/topo@5.1.0\r\n\u251c\u2500 @jest\/create-cache-key-function@29.7.0\r\n\u251c\u2500 @jest\/environment@29.7.0\r\n\u251c\u2500 @jridgewell\/resolve-uri@3.1.1\r\n\u251c\u2500 @jridgewell\/set-array@1.1.2\r\n\u251c\u2500 @jridgewell\/source-map@0.3.5\r\n\u251c\u2500 @jridgewell\/sourcemap-codec@1.4.15\r\n\u251c\u2500 @react-native-community\/cli-clean@11.3.10\r\n\u251c\u2500 @react-native-community\/cli-doctor@11.3.10\r\n\u251c\u2500 @react-native-community\/cli-hermes@11.3.10\r\n\u251c\u2500 @react-native-community\/cli-plugin-metro@11.3.10\r\n\u251c\u2500 @react-native-community\/cli-types@11.3.10\r\n\u251c\u2500 @react-native-community\/cli@11.3.10\r\n\u251c\u2500 @react-native\/assets-registry@0.72.0\r\n\u251c\u2500 @react-native\/codegen@0.72.7\r\n\u251c\u2500 @react-native\/gradle-plugin@0.72.11\r\n\u251c\u2500 @react-native\/js-polyfills@0.72.1\r\n\u251c\u2500 @react-native\/normalize-colors@0.72.0\r\n\u251c\u2500 @react-native\/virtualized-lists@0.72.8\r\n\u251c\u2500 @sideway\/address@4.1.4\r\n\u251c\u2500 @sideway\/formula@3.0.1\r\n\u251c\u2500 @sideway\/pinpoint@2.0.0\r\n\u251c\u2500 @sinclair\/typebox@0.27.8\r\n\u251c\u2500 @sinonjs\/commons@3.0.0\r\n\u251c\u2500 @sinonjs\/fake-timers@10.3.0\r\n\u251c\u2500 @types\/istanbul-lib-report@3.0.3\r\n\u251c\u2500 @types\/stack-utils@2.0.3\r\n\u251c\u2500 @types\/yargs@17.0.31\r\n\u251c\u2500 abort-controller@3.0.0\r\n\u251c\u2500 accepts@1.3.8\r\n\u251c\u2500 acorn@8.11.2\r\n\u251c\u2500 anser@1.4.10\r\n\u251c\u2500 ansi-fragments@0.2.1\r\n\u251c\u2500 ansi-regex@5.0.1\r\n\u251c\u2500 anymatch@3.1.3\r\n\u251c\u2500 appdirsjs@1.2.7\r\n\u251c\u2500 argparse@1.0.10\r\n\u251c\u2500 asap@2.0.6\r\n\u251c\u2500 ast-types@0.15.2\r\n\u251c\u2500 astral-regex@1.0.0\r\n\u251c\u2500 async-limiter@1.0.1\r\n\u251c\u2500 async@3.2.5\r\n\u251c\u2500 babel-core@7.0.0-bridge.0\r\n\u251c\u2500 babel-plugin-polyfill-corejs2@0.4.6\r\n\u251c\u2500 babel-plugin-polyfill-corejs3@0.8.6\r\n\u251c\u2500 babel-plugin-polyfill-regenerator@0.5.3\r\n\u251c\u2500 babel-plugin-syntax-trailing-function-commas@7.0.0-beta.0\r\n\u251c\u2500 babel-plugin-transform-flow-enums@0.0.2\r\n\u251c\u2500 balanced-match@1.0.2\r\n\u251c\u2500 base64-js@1.5.1\r\n\u251c\u2500 bl@4.1.0\r\n\u251c\u2500 brace-expansion@1.1.11\r\n\u251c\u2500 braces@3.0.2\r\n\u251c\u2500 browserslist@4.22.1\r\n\u251c\u2500 bser@2.1.1\r\n\u251c\u2500 buffer-from@1.1.2\r\n\u251c\u2500 buffer@5.7.1\r\n\u251c\u2500 bytes@3.0.0\r\n\u251c\u2500 caller-callsite@2.0.0\r\n\u251c\u2500 caller-path@2.0.0\r\n\u251c\u2500 callsites@2.0.0\r\n\u251c\u2500 camelcase@5.3.1\r\n\u251c\u2500 caniuse-lite@1.0.30001562\r\n\u251c\u2500 cli-cursor@3.1.0\r\n\u251c\u2500 cli-spinners@2.9.1\r\n\u251c\u2500 cliui@8.0.1\r\n\u251c\u2500 clone-deep@4.0.1\r\n\u251c\u2500 clone@1.0.4\r\n\u251c\u2500 color-convert@2.0.1\r\n\u251c\u2500 color-name@1.1.4\r\n\u251c\u2500 colorette@1.4.0\r\n\u251c\u2500 command-exists@1.2.9\r\n\u251c\u2500 commander@9.5.0\r\n\u251c\u2500 commondir@1.0.1\r\n\u251c\u2500 compressible@2.0.18\r\n\u251c\u2500 compression@1.7.4\r\n\u251c\u2500 concat-map@0.0.1\r\n\u251c\u2500 convert-source-map@2.0.0\r\n\u251c\u2500 core-js-compat@3.33.2\r\n\u251c\u2500 core-util-is@1.0.3\r\n\u251c\u2500 cosmiconfig@5.2.1\r\n\u251c\u2500 cross-spawn@7.0.3\r\n\u251c\u2500 dayjs@1.11.10\r\n\u251c\u2500 deepmerge@4.3.1\r\n\u251c\u2500 defaults@1.0.4\r\n\u251c\u2500 denodeify@1.2.1\r\n\u251c\u2500 deprecated-react-native-prop-types@4.2.3\r\n\u251c\u2500 destroy@1.2.0\r\n\u251c\u2500 electron-to-chromium@1.4.583\r\n\u251c\u2500 emoji-regex@8.0.0\r\n\u251c\u2500 envinfo@7.11.0\r\n\u251c\u2500 error-ex@1.3.2\r\n\u251c\u2500 error-stack-parser@2.1.4\r\n\u251c\u2500 errorhandler@1.5.1\r\n\u251c\u2500 escape-string-regexp@1.0.5\r\n\u251c\u2500 esprima@4.0.1\r\n\u251c\u2500 etag@1.8.1\r\n\u251c\u2500 event-target-shim@5.0.1\r\n\u251c\u2500 fast-xml-parser@4.3.2\r\n\u251c\u2500 fb-watchman@2.0.2\r\n\u251c\u2500 fill-range@7.0.1\r\n\u251c\u2500 finalhandler@1.1.2\r\n\u251c\u2500 find-cache-dir@2.1.0\r\n\u251c\u2500 flow-enums-runtime@0.0.5\r\n\u251c\u2500 flow-parser@0.206.0\r\n\u251c\u2500 fresh@0.5.2\r\n\u251c\u2500 fs-extra@8.1.0\r\n\u251c\u2500 fs.realpath@1.0.0\r\n\u251c\u2500 function-bind@1.1.2\r\n\u251c\u2500 gensync@1.0.0-beta.2\r\n\u251c\u2500 get-caller-file@2.0.5\r\n\u251c\u2500 get-stream@6.0.1\r\n\u251c\u2500 hasown@2.0.0\r\n\u251c\u2500 hermes-estree@0.12.0\r\n\u251c\u2500 http-errors@2.0.0\r\n\u251c\u2500 human-signals@2.1.0\r\n\u251c\u2500 ieee754@1.2.1\r\n\u251c\u2500 image-size@1.0.2\r\n\u251c\u2500 import-fresh@2.0.0\r\n\u251c\u2500 imurmurhash@0.1.4\r\n\u251c\u2500 inflight@1.0.6\r\n\u251c\u2500 inherits@2.0.4\r\n\u251c\u2500 is-arrayish@0.2.1\r\n\u251c\u2500 is-core-module@2.13.1\r\n\u251c\u2500 is-directory@0.3.1\r\n\u251c\u2500 is-fullwidth-code-point@3.0.0\r\n\u251c\u2500 is-interactive@1.0.0\r\n\u251c\u2500 is-number@7.0.0\r\n\u251c\u2500 is-plain-object@2.0.4\r\n\u251c\u2500 is-stream@2.0.1\r\n\u251c\u2500 is-wsl@1.1.0\r\n\u251c\u2500 isarray@1.0.0\r\n\u251c\u2500 isexe@2.0.0\r\n\u251c\u2500 isobject@3.0.1\r\n\u251c\u2500 jest-environment-node@29.7.0\r\n\u251c\u2500 jest-get-type@29.6.3\r\n\u251c\u2500 jest-message-util@29.7.0\r\n\u251c\u2500 jest-regex-util@27.5.1\r\n\u251c\u2500 jest-validate@29.7.0\r\n\u251c\u2500 js-tokens@4.0.0\r\n\u251c\u2500 js-yaml@3.14.1\r\n\u251c\u2500 jsc-android@250231.0.0\r\n\u251c\u2500 jsc-safe-url@0.2.4\r\n\u251c\u2500 jscodeshift@0.14.0\r\n\u251c\u2500 jsesc@2.5.2\r\n\u251c\u2500 json-parse-better-errors@1.0.2\r\n\u251c\u2500 json5@2.2.3\r\n\u251c\u2500 jsonfile@4.0.0\r\n\u251c\u2500 kleur@3.0.3\r\n\u251c\u2500 leven@3.1.0\r\n\u251c\u2500 locate-path@5.0.0\r\n\u251c\u2500 lodash.debounce@4.0.8\r\n\u251c\u2500 log-symbols@4.1.0\r\n\u251c\u2500 logkitty@0.7.1\r\n\u251c\u2500 loose-envify@1.4.0\r\n\u251c\u2500 lru-cache@6.0.0\r\n\u251c\u2500 make-dir@2.1.0\r\n\u251c\u2500 makeerror@1.0.12\r\n\u251c\u2500 memoize-one@5.2.1\r\n\u251c\u2500 metro-file-map@0.76.8\r\n\u251c\u2500 metro-inspector-proxy@0.76.8\r\n\u251c\u2500 metro-minify-terser@0.76.8\r\n\u251c\u2500 metro-minify-uglify@0.76.8\r\n\u251c\u2500 metro-react-native-babel-transformer@0.76.8\r\n\u251c\u2500 metro-transform-worker@0.76.8\r\n\u251c\u2500 mime-db@1.52.0\r\n\u251c\u2500 mime-types@2.1.35\r\n\u251c\u2500 mime@2.6.0\r\n\u251c\u2500 mimic-fn@2.1.0\r\n\u251c\u2500 minimatch@3.1.2\r\n\u251c\u2500 minimist@1.2.8\r\n\u251c\u2500 mkdirp@0.5.6\r\n\u251c\u2500 ms@2.0.0\r\n\u251c\u2500 negotiator@0.6.3\r\n\u251c\u2500 neo-async@2.6.2\r\n\u251c\u2500 nocache@3.0.4\r\n\u251c\u2500 node-abort-controller@3.1.1\r\n\u251c\u2500 node-dir@0.1.17\r\n\u251c\u2500 node-int64@0.4.0\r\n\u251c\u2500 node-releases@2.0.13\r\n\u251c\u2500 node-stream-zip@1.15.0\r\n\u251c\u2500 normalize-path@3.0.0\r\n\u251c\u2500 npm-run-path@4.0.1\r\n\u251c\u2500 ob1@0.76.8\r\n\u251c\u2500 on-finished@2.4.1\r\n\u251c\u2500 on-headers@1.0.2\r\n\u251c\u2500 onetime@5.1.2\r\n\u251c\u2500 open@6.4.0\r\n\u251c\u2500 p-limit@2.3.0\r\n\u251c\u2500 p-locate@4.1.0\r\n\u251c\u2500 p-try@2.2.0\r\n\u251c\u2500 parse-json@4.0.0\r\n\u251c\u2500 path-is-absolute@1.0.1\r\n\u251c\u2500 path-key@3.1.1\r\n\u251c\u2500 path-parse@1.0.7\r\n\u251c\u2500 picocolors@1.0.0\r\n\u251c\u2500 picomatch@2.3.1\r\n\u251c\u2500 pify@4.0.1\r\n\u251c\u2500 pirates@4.0.6\r\n\u251c\u2500 pkg-dir@3.0.0\r\n\u251c\u2500 pretty-format@26.6.2\r\n\u251c\u2500 process-nextick-args@2.0.1\r\n\u251c\u2500 promise@8.3.0\r\n\u251c\u2500 prop-types@15.8.1\r\n\u251c\u2500 queue@6.0.2\r\n\u251c\u2500 range-parser@1.2.1\r\n\u251c\u2500 react-devtools-core@4.28.5\r\n\u251c\u2500 react-is@18.2.0\r\n\u251c\u2500 react-native@0.72.7\r\n\u251c\u2500 react-shallow-renderer@16.15.0\r\n\u251c\u2500 readable-stream@3.6.2\r\n\u251c\u2500 readline@1.3.0\r\n\u251c\u2500 recast@0.21.5\r\n\u251c\u2500 regenerate-unicode-properties@10.1.1\r\n\u251c\u2500 regenerator-runtime@0.13.11\r\n\u251c\u2500 regexpu-core@5.3.2\r\n\u251c\u2500 regjsparser@0.9.1\r\n\u251c\u2500 require-main-filename@2.0.0\r\n\u251c\u2500 resolve-from@3.0.0\r\n\u251c\u2500 resolve@1.22.8\r\n\u251c\u2500 restore-cursor@3.1.0\r\n\u251c\u2500 safe-buffer@5.1.2\r\n\u251c\u2500 scheduler@0.24.0-canary-efb381bbf-20230505\r\n\u251c\u2500 send@0.18.0\r\n\u251c\u2500 serialize-error@2.1.0\r\n\u251c\u2500 set-blocking@2.0.0\r\n\u251c\u2500 setprototypeof@1.2.0\r\n\u251c\u2500 shallow-clone@3.0.1\r\n\u251c\u2500 shebang-command@2.0.0\r\n\u251c\u2500 shebang-regex@3.0.0\r\n\u251c\u2500 shell-quote@1.8.1\r\n\u251c\u2500 sisteransi@1.0.5\r\n\u251c\u2500 slash@3.0.0\r\n\u251c\u2500 slice-ansi@2.1.0\r\n\u251c\u2500 source-map-support@0.5.21\r\n\u251c\u2500 sprintf-js@1.0.3\r\n\u251c\u2500 stack-utils@2.0.6\r\n\u251c\u2500 stackframe@1.3.4\r\n\u251c\u2500 stacktrace-parser@0.1.10\r\n\u251c\u2500 string_decoder@1.3.0\r\n\u251c\u2500 strip-final-newline@2.0.0\r\n\u251c\u2500 strnum@1.0.5\r\n\u251c\u2500 sudo-prompt@9.2.1\r\n\u251c\u2500 supports-color@7.2.0\r\n\u251c\u2500 supports-preserve-symlinks-flag@1.0.0\r\n\u251c\u2500 temp@0.8.4\r\n\u251c\u2500 terser@5.24.0\r\n\u251c\u2500 throat@5.0.0\r\n\u251c\u2500 through2@2.0.5\r\n\u251c\u2500 tmpl@1.0.5\r\n\u251c\u2500 to-fast-properties@2.0.0\r\n\u251c\u2500 to-regex-range@5.0.1\r\n\u251c\u2500 toidentifier@1.0.1\r\n\u251c\u2500 tr46@0.0.3\r\n\u251c\u2500 type-detect@4.0.8\r\n\u251c\u2500 type-fest@0.7.1\r\n\u251c\u2500 uglify-es@3.3.9\r\n\u251c\u2500 undici-types@5.26.5\r\n\u251c\u2500 unicode-canonical-property-names-ecmascript@2.0.0\r\n\u251c\u2500 unicode-match-property-ecmascript@2.0.0\r\n\u251c\u2500 unicode-match-property-value-ecmascript@2.1.0\r\n\u251c\u2500 unicode-property-aliases-ecmascript@2.1.0\r\n\u251c\u2500 universalify@0.1.2\r\n\u251c\u2500 unpipe@1.0.0\r\n\u251c\u2500 update-browserslist-db@1.0.13\r\n\u251c\u2500 use-sync-external-store@1.2.0\r\n\u251c\u2500 util-deprecate@1.0.2\r\n\u251c\u2500 utils-merge@1.0.1\r\n\u251c\u2500 vary@1.1.2\r\n\u251c\u2500 walker@1.0.8\r\n\u251c\u2500 webidl-conversions@3.0.1\r\n\u251c\u2500 whatwg-fetch@3.6.19\r\n\u251c\u2500 whatwg-url@5.0.0\r\n\u251c\u2500 which-module@2.0.1\r\n\u251c\u2500 which@2.0.2\r\n\u251c\u2500 wrap-ansi@7.0.0\r\n\u251c\u2500 write-file-atomic@2.4.3\r\n\u251c\u2500 xtend@4.0.2\r\n\u251c\u2500 y18n@5.0.8\r\n\u251c\u2500 yallist@4.0.0\r\n\u251c\u2500 yaml@2.3.4\r\n\u251c\u2500 yargs-parser@21.1.1\r\n\u2514\u2500 yocto-queue@0.1.0\r\nDone in 266.42s.\r\n\r\nD:\\&gt;\r\n<\/code><\/pre>\n<p>\u975e\u5e38\u591a\u7684\u7ec4\u4ef6\u5df2\u7ecf\u88ab\u4e0b\u8f7d\u4e0b\u6765\u3002\u867d\u7136\u6709\u5f88\u591a\u8b66\u544a\uff0c\u4f46\u7ec6\u8282\u90e8\u5206\u6211\u4e0d\u592a\u6e05\u695a\uff0c\u6240\u4ee5\u5c31\u5148\u7b97\u4e86\u3002\u8fd8\u6709\u4e00\u4e2a\u5173\u4e8e\u7c7b\u578b\u4fe1\u606f\u7684\u5305\u7684\u547d\u4ee4\u4e5f\u6709\u8bf4\u660e\uff0c\u6240\u4ee5\u4e5f\u6267\u884c\u4e86\u3002<\/p>\n<pre class=\"post-pre\"><code>D:\\&gt;yarn add --dev --exact @types\/react-native\r\nyarn add v1.22.19\r\nwarning package.json: No license field\r\nwarning No license field\r\n[1\/4] Resolving packages...\r\n? @types\/react-native(node:18644) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.\r\n(Use `node --trace-deprecation ...` to show where the warning was created)\r\n[2\/4] Fetching packages...\r\n[3\/4] Linking dependencies...\r\nwarning \" &gt; react-native@0.72.7\" has unmet peer dependency \"react@18.2.0\".\r\nwarning \"react-native &gt; @react-native\/codegen@0.72.7\" has unmet peer dependency \"@babel\/preset-env@^7.1.6\".\r\nwarning \"react-native &gt; react-shallow-renderer@16.15.0\" has unmet peer dependency \"react@^16.0.0 || ^17.0.0 || ^18.0.0\".\r\nwarning \"react-native &gt; use-sync-external-store@1.2.0\" has unmet peer dependency \"react@^16.8.0 || ^17.0.0 || ^18.0.0\".\r\nwarning \"react-native &gt; @react-native\/codegen &gt; jscodeshift@0.14.0\" has unmet peer dependency \"@babel\/preset-env@^7.1.6\".\r\nwarning \"react-native &gt; @react-native-community\/cli &gt; @react-native-community\/cli-plugin-metro &gt; metro-react-native-babel-transformer@0.76.8\" has unmet peer dependency \"@babel\/core@*\".\r\n[4\/4] Building fresh packages...\r\nsuccess Saved lockfile.\r\nwarning No license field\r\nsuccess Saved 5 new dependencies.\r\ninfo Direct dependencies\r\n\u2514\u2500 @types\/react-native@0.72.6\r\ninfo All dependencies\r\n\u251c\u2500 @types\/prop-types@15.7.10\r\n\u251c\u2500 @types\/react-native@0.72.6\r\n\u251c\u2500 @types\/react@18.2.37\r\n\u251c\u2500 @types\/scheduler@0.16.6\r\n\u2514\u2500 csstype@3.1.2\r\nDone in 22.60s.\r\n\r\nD:\\&gt;\r\n<\/code><\/pre>\n<p>\u8fd9\u65b9\u9762\u7684\u76ee\u6807\u5f88\u5c0f\u3002\u611f\u89c9\u5df2\u7ecf\u987a\u5229\u5b89\u88c5\u5b8c\u6210\u4e86\u3002<\/p>\n<h3>\u5373\u5c06\u5f00\u59cb\u9879\u76ee\u7684\u5236\u4f5c<\/h3>\n<p>\u6839\u636e\u53c2\u8003\u4e66\u7c4d\u7684\u6307\u793a\uff0c\u7ec8\u4e8e\u521b\u5efa\u4e86React Native\u9879\u76ee\u3002\u5e0c\u671b\u4e00\u5207\u987a\u5229\u3002<\/p>\n<pre class=\"post-pre\"><code>D:\\&gt;npx react-native init MyApp --template react-native-template-typescript@6.3.16\r\n\r\n               ######                ######\r\n             ###     ####        ####     ###\r\n            ##          ###    ###          ##\r\n            ##             ####             ##\r\n            ##             ####             ##\r\n            ##           ##    ##           ##\r\n            ##         ###      ###         ##\r\n             ##  ########################  ##\r\n          ######    ###            ###    ######\r\n      ###     ##    ##              ##    ##     ###\r\n   ###         ## ###      ####      ### ##         ###\r\n  ##           ####      ########      ####           ##\r\n ##             ###     ##########     ###             ##\r\n  ##           ####      ########      ####           ##\r\n   ###         ## ###      ####      ### ##         ###\r\n      ###     ##    ##              ##    ##     ###\r\n          ######    ###            ###    ######\r\n             ##  ########################  ##\r\n            ##         ###      ###         ##\r\n            ##           ##    ##           ##\r\n            ##             ####             ##\r\n            ##             ####             ##\r\n            ##          ###    ###          ##\r\n             ###     ####        ####     ###\r\n               ######                ######\r\n\r\n\r\n                  Welcome to React Native!\r\n                 Learn once, write anywhere\r\n\r\n\u221a Downloading template\r\n\u221a Copying template\r\n\u221a Processing template\r\n\u221a Installing dependencies\r\n\r\n\r\n  Run instructions for Android:\r\n    ? Have an Android emulator running (quickest way to get started), or a device connected.\r\n    ? cd \"D:\\MyApp\" &amp;&amp; npx react-native run-android\r\n\r\n  Run instructions for Windows:\r\n    ? See https:\/\/aka.ms\/ReactNativeGuideWindows for the latest up-to-date instructions.\r\n\r\n\r\n\r\nD:\\&gt;\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d321637434c4406c60e2f\/24-0.png\" alt=\"61.png\" \/><\/div>\n<h3>\u679c\u7136\u4e0d\u90a3\u4e48\u987a\u5229(1)<\/h3>\n<p>\u6211\u51b3\u5b9a\u5c1d\u8bd5\u5728\u5b89\u5353\u73af\u5883\u4e0b\u8fd0\u884c\uff0c\u867d\u7136\u751f\u6210\u7684\u547d\u4ee4\u8f93\u51fa\u7ed3\u679c\u4e2d\u4e5f\u6709\u76f8\u5173\u4fe1\u606f\u3002<\/p>\n<pre class=\"post-pre\"><code>D:\\&gt;cd MyApp\r\n\r\nD:\\MyApp&gt;npx react-native run-android\r\ninfo Running jetifier to migrate libraries to AndroidX. You can disable it using \"--no-jetifier\" flag.\r\nJetifier found 866 file(s) to forward-jetify. Using 6 workers...\r\n(node:16816) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.\r\n(Use `node --trace-deprecation ...` to show where the warning was created)\r\ninfo Starting JS server...\r\n'adb' ??A???R?}???h?????O???R?}???h?A\r\n?????\\??v???O?????????o?b?` ?t?@?C???????F?????????????B\r\ninfo Launching emulator...\r\nerror Failed to launch emulator. Reason: No emulators found as an output of `emulator -list-avds`.\r\nwarn Please launch an emulator manually or connect a device. Otherwise app may fail to launch.\r\ninfo Installing the app...\r\nDownloading https:\/\/services.gradle.org\/distributions\/gradle-5.5-all.zip\r\n.................................................................................................................................\r\n\r\nWelcome to Gradle 5.5!\r\n\r\nHere are the highlights of this release:\r\n - Kickstart Gradle plugin development with gradle init\r\n - Distribute organization-wide Gradle properties in custom Gradle distributions\r\n - Transform dependency artifacts on resolution\r\n\r\nFor more details see https:\/\/docs.gradle.org\/5.5\/release-notes.html\r\n\r\nStarting a Gradle Daemon (subsequent builds will be faster)\r\n\r\nFAILURE: Build failed with an exception.\r\n\r\n* What went wrong:\r\nA problem occurred configuring project ':app'.\r\n&gt; SDK location not found. Define location with an ANDROID_SDK_ROOT environment variable or by setting the sdk.dir path in your project's local properties file at 'D:\\MyApp\\android\\local.properties'.\r\n\r\n* Try:\r\nRun with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.\r\n\r\n* Get more help at https:\/\/help.gradle.org\r\n\r\nBUILD FAILED in 7m 19s\r\n\r\nerror Failed to install the app. Make sure you have the Android development environment set up: https:\/\/facebook.github.io\/react-native\/docs\/getting-started.html#android-development-environment. Run CLI with --verbose flag for more details.\r\nError: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081\r\n\r\nFAILURE: Build failed with an exception.\r\n\r\n* What went wrong:\r\nA problem occurred configuring project ':app'.\r\n&gt; SDK location not found. Define location with an ANDROID_SDK_ROOT environment variable or by setting the sdk.dir path in your project's local properties file at 'D:\\MyApp\\android\\local.properties'.\r\n\r\n* Try:\r\nRun with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.\r\n\r\n* Get more help at https:\/\/help.gradle.org\r\n\r\nBUILD FAILED in 7m 19s\r\n\r\n    at checkExecSyncError (node:child_process:890:11)\r\n    at execFileSync (node:child_process:926:15)\r\n    at runOnAllDevices (D:\\MyApp\\node_modules\\@react-native-community\\cli-platform-android\\build\\commands\\runAndroid\\runOnAllDevices.js:94:39)\r\n    at process.processTicksAndRejections (node:internal\/process\/task_queues:95:5)\r\n\r\nD:\\MyApp&gt;\r\n<\/code><\/pre>\n<p>\u5b8c\u5168\u5931\u8d25\u3002\u65e0\u8bba\u662fUnicode\u6d88\u606f\u8fd8\u662f\u4ece\u547d\u4ee4\u63d0\u793a\u7b26\u6267\u884c\uff0c\u90fd\u65e0\u6cd5\u8bfb\u53d6\uff0c\u56e0\u4e3a\u51fa\u73b0\u4e71\u7801\u3002\u4e0d\u8fc7\uff0c\u5982\u679c\u4ed4\u7ec6\u9605\u8bfb\uff0c\u8f93\u51fa\u4e2d\u5305\u542b\u4ee5\u4e0b\u63cf\u8ff0\u3002<\/p>\n<p>\u9519\u8bef\uff1a\u65e0\u6cd5\u542f\u52a8\u6a21\u62df\u5668\u3002\u539f\u56e0\uff1a\u6ca1\u6709\u6a21\u62df\u5668\u4f5c\u4e3a emulator -list-avds \u7684\u8f93\u51fa\u627e\u5230\u3002<\/p>\n<p>\u7528\u6a21\u62df\u5668\u547d\u4ee4\u53ef\u80fd\u53ef\u4ee5\u68c0\u67e5\u865a\u62df\u8bbe\u5907\u3002\u6211\u60f3\u77e5\u9053\u6a21\u62df\u5668\u547d\u4ee4\u5728\u54ea\u91cc\uff1f\u4e8e\u662f\u6211\u5148\u770b\u4e86\u4e00\u4e0b\u5b89\u5353SDK\u5b89\u88c5\u65f6\u6307\u5b9a\u7684\u5b89\u5353SDK\u4f4d\u7f6e\uff0c\u5927\u7ea6\u662f\u5728C:\\Users\\XXXX\\AppData\\Local\\Android\\Sdk\u8fd9\u4e2a\u6587\u4ef6\u5939\u91cc\u3002\u7136\u540e\u6211\u53d1\u73b0\u5728emulator\u6587\u4ef6\u5939\u91cc\u6709emulator.exe\u3002\u6211\u53ef\u4ee5\u4f7f\u7528`-list-avds`\u53c2\u6570\u6765\u6267\u884c\u68c0\u67e5\u3002<\/p>\n<pre class=\"post-pre\"><code>d:\\&gt;C:\\Users\\XXXX\\AppData\\Local\\Android\\Sdk\\emulator\\emulator.exe -list-avds\r\nPixel_2_API_34\r\n\r\nd:\\&gt;\r\n<\/code><\/pre>\n<p>\u770b\u8d77\u6765\u865a\u62df\u8bbe\u5907\u88ab\u6b63\u786e\u8bc6\u522b\u4e86\u3002\u6211\u6253\u7b97\u5728PATH\u4e2d\u6dfb\u52a0emulator.exe\u6587\u4ef6\u5939\u6765\u5c1d\u8bd5\u4e00\u4e0b\u3002<\/p>\n<p>\u53e6\u5916\uff0c\u6267\u884crun-android\u65f6\uff0c\u4f1a\u81ea\u52a8\u663e\u793a\u5982\u4e0b\u547d\u4ee4\u7a97\u53e3\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d321637434c4406c60e2f\/34-0.png\" alt=\"62.png\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d321637434c4406c60e2f\/35-1.png\" alt=\"64.png\" \/><\/div>\n<h3>\u8fd8\u662f\u4e0d\u592a\u987a\u5229\u7684(2)\u3002<\/h3>\n<p>\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\u8f93\u5165npx\u547d\u4ee4\uff0c\u4e34\u65f6\u66f4\u6539PATH\u5e76\u91cd\u65b0\u6267\u884c\u3002\u5c3d\u7ba1\u4ecd\u7136\u5931\u8d25\uff0c\u4f46\u9519\u8bef\u5185\u5bb9\u5df2\u7ecf\u6539\u53d8\u4e86\u3002<\/p>\n<pre class=\"post-pre\"><code>D:\\MyApp&gt;PATH=%PATH%;C:\\Users\\XXXX\\AppData\\Local\\Android\\Sdk\\emulator\r\n\r\nD:\\MyApp&gt;npx react-native run-android\r\ninfo Running jetifier to migrate libraries to AndroidX. You can disable it using \"--no-jetifier\" flag.\r\nJetifier found 866 file(s) to forward-jetify. Using 6 workers...\r\n(node:15936) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.\r\n(Use `node --trace-deprecation ...` to show where the warning was created)\r\ninfo JS server already running.\r\n'adb' ??A???R?}???h?????O???R?}???h?A\r\n?????\\??v???O?????????o?b?` ?t?@?C???????F?????????????B\r\ninfo Launching emulator...\r\n'adb' ??A???R?}???h?????O???R?}???h?A\r\n?????\\??v???O?????????o?b?` ?t?@?C???????F?????????????B\r\n'adb' ??A???R?}???h?????O???R?}???h?A\r\n?????\\??v???O?????????o?b?` ?t?@?C???????F?????????????B\r\n'adb' ??A???R?}???h?????O???R?}???h?A\r\n?????\\??v???O?????????o?b?` ?t?@?C???????F?????????????B\r\n'adb' ??A???R?}???h?????O???R?}???h?A\r\n?????\\??v???O?????????o?b?` ?t?@?C???????F?????????????B\r\n'adb' ??A???R?}???h?????O???R?}???h?A\r\n?????\\??v???O?????????o?b?` ?t?@?C???????F?????????????B\r\n'adb' ??A???R?}???h?????O???R?}???h?A\r\n?????\\??v???O?????????o?b?` ?t?@?C???????F?????????????B\r\n'adb' ??A???R?}???h?????O???R?}???h?A\r\n?????\\??v???O?????????o?b?` ?t?@?C???????F?????????????B\r\n'adb' ??A???R?}???h?????O???R?}???h?A\r\n?????\\??v???O?????????o?b?` ?t?@?C???????F?????????????B\r\n'adb' ??A???R?}???h?????O???R?}???h?A\r\n?????\\??v???O?????????o?b?` ?t?@?C???????F?????????????B\r\n'adb' ??A???R?}???h?????O???R?}???h?A\r\n?????\\??v???O?????????o?b?` ?t?@?C???????F?????????????B\r\n'adb' ??A???R?}???h?????O???R?}???h?A\r\n?????\\??v???O?????????o?b?` ?t?@?C???????F?????????????B\r\n'adb' ??A???R?}???h?????O???R?}???h?A\r\n?????\\??v???O?????????o?b?` ?t?@?C???????F?????????????B\r\n'adb' ??A???R?}???h?????O???R?}???h?A\r\n?????\\??v???O?????????o?b?` ?t?@?C???????F?????????????B\r\n'adb' ??A???R?}???h?????O???R?}???h?A\r\n?????\\??v???O?????????o?b?` ?t?@?C???????F?????????????B\r\n'adb' ??A???R?}???h?????O???R?}???h?A\r\n?????\\??v???O?????????o?b?` ?t?@?C???????F?????????????B\r\n'adb' ??A???R?}???h?????O???R?}???h?A\r\n?????\\??v???O?????????o?b?` ?t?@?C???????F?????????????B\r\n'adb' ??A???R?}???h?????O???R?}???h?A\r\n?????\\??v???O?????????o?b?` ?t?@?C???????F?????????????B\r\n'adb' ??A???R?}???h?????O???R?}???h?A\r\n?????\\??v???O?????????o?b?` ?t?@?C???????F?????????????B\r\n'adb' ??A???R?}???h?????O???R?}???h?A\r\n?????\\??v???O?????????o?b?` ?t?@?C???????F?????????????B\r\n'adb' ??A???R?}???h?????O???R?}???h?A\r\n?????\\??v???O?????????o?b?` ?t?@?C???????F?????????????B\r\n'adb' ??A???R?}???h?????O???R?}???h?A\r\n?????\\??v???O?????????o?b?` ?t?@?C???????F?????????????B\r\n'adb' ??A???R?}???h?????O???R?}???h?A\r\n?????\\??v???O?????????o?b?` ?t?@?C???????F?????????????B\r\n'adb' ??A???R?}???h?????O???R?}???h?A\r\n?????\\??v???O?????????o?b?` ?t?@?C???????F?????????????B\r\n'adb' ??A???R?}???h?????O???R?}???h?A\r\n?????\\??v???O?????????o?b?` ?t?@?C???????F?????????????B\r\n'adb' ??A???R?}???h?????O???R?}???h?A\r\n?????\\??v???O?????????o?b?` ?t?@?C???????F?????????????B\r\n'adb' ??A???R?}???h?????O???R?}???h?A\r\n?????\\??v???O?????????o?b?` ?t?@?C???????F?????????????B\r\n'adb' ??A???R?}???h?????O???R?}???h?A\r\n?????\\??v???O?????????o?b?` ?t?@?C???????F?????????????B\r\n'adb' ??A???R?}???h?????O???R?}???h?A\r\n?????\\??v???O?????????o?b?` ?t?@?C???????F?????????????B\r\n'adb' ??A???R?}???h?????O???R?}???h?A\r\n?????\\??v???O?????????o?b?` ?t?@?C???????F?????????????B\r\nerror Failed to launch emulator. Reason: Could not start emulator within 30 seconds..\r\nwarn Please launch an emulator manually or connect a device. Otherwise app may fail to launch.\r\ninfo Installing the app...\r\n\r\nFAILURE: Build failed with an exception.\r\n\r\n* What went wrong:\r\nA problem occurred configuring project ':app'.\r\n&gt; SDK location not found. Define location with an ANDROID_SDK_ROOT environment variable or by setting the sdk.dir path in your project's local properties file at 'D:\\MyApp\\android\\local.properties'.\r\n\r\n* Try:\r\nRun with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.\r\n\r\n* Get more help at https:\/\/help.gradle.org\r\n\r\nBUILD FAILED in 4s\r\n\r\nerror Failed to install the app. Make sure you have the Android development environment set up: https:\/\/facebook.github.io\/react-native\/docs\/getting-started.html#android-development-environment. Run CLI with --verbose flag for more details.\r\nError: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081\r\n\r\nFAILURE: Build failed with an exception.\r\n\r\n* What went wrong:\r\nA problem occurred configuring project ':app'.\r\n&gt; SDK location not found. Define location with an ANDROID_SDK_ROOT environment variable or by setting the sdk.dir path in your project's local properties file at 'D:\\MyApp\\android\\local.properties'.\r\n\r\n* Try:\r\nRun with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.\r\n\r\n* Get more help at https:\/\/help.gradle.org\r\n\r\nBUILD FAILED in 4s\r\n\r\n    at checkExecSyncError (node:child_process:890:11)\r\n    at execFileSync (node:child_process:926:15)\r\n    at runOnAllDevices (D:\\MyApp\\node_modules\\@react-native-community\\cli-platform-android\\build\\commands\\runAndroid\\runOnAllDevices.js:94:39)\r\n    at async Command.handleAction (D:\\MyApp\\node_modules\\@react-native-community\\cli\\build\\index.js:182:9)\r\n\r\nD:\\MyApp&gt;\r\n<\/code><\/pre>\n<p>\u8bf7\u6ce8\u610f\u4ee5\u4e0b\u4fe1\u606f\u3002<\/p>\n<p>\u9519\u8bef \u65e0\u6cd5\u542f\u52a8\u6a21\u62df\u5668\u3002\u539f\u56e0\uff1a30\u79d2\u5185\u65e0\u6cd5\u542f\u52a8\u6a21\u62df\u5668\u3002<br \/>\n\u8b66\u544a \u8bf7\u624b\u52a8\u542f\u52a8\u4e00\u4e2a\u6a21\u62df\u5668\u6216\u8fde\u63a5\u8bbe\u5907\u3002\u5426\u5219\u5e94\u7528\u53ef\u80fd\u65e0\u6cd5\u542f\u52a8\u3002<\/p>\n<p>\u4f3c\u4e4e\u5df2\u7ecf\u627e\u5230\u4e86\u865a\u62df\u8bbe\u5907\uff0c\u4f46\u6b63\u5728\u663e\u793a\u65e0\u6cd5\u572830\u79d2\u5185\u542f\u52a8\u6a21\u62df\u5668\u7684\u6d88\u606f\u3002\u6682\u4e14\u7b97\u662f\u8fc8\u51fa\u4e86\u4e00\u6b65\u524d\u8fdb\u3002<\/p>\n<p>\u53e6\u5916\uff0c\u8fd9\u6b21\u5f39\u51fa\u4e86\u4ee5\u4e0b\u547d\u4ee4\u63d0\u793a\u7a97\u53e3\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d321637434c4406c60e2f\/43-0.png\" alt=\"65.png\" \/><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u4e0a\u6b21\u7ec8\u4e8e\u6210\u529f\u751f\u6210\u4e86Android\u865a\u62df\u8bbe\u5907\u3002\u8fd8\u9700\u8981\u7a0d\u5fae\u5b8c\u6210\u4e00\u4e9b\u5269\u4f59\u7684\u73af\u5883\u8bbe\u7f6e\uff0c\u6211\u89c9\u5f97\u73b0\u5728\u5dee\u4e0d\u591a\u53ef\u4ee5\u5f00\u59cb\u521b\u5efaRea [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-38076","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u6211\u8bd5\u7740\u5efa\u7acb\u4e86\u4e00\u4e2aWeb\u5e94\u7528\u5f00\u53d1\u73af\u5883(6) - React Native(6) - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/\u6211\u8bd5\u7740\u5efa\u7acb\u4e86\u4e00\u4e2aweb\u5e94\u7528\u5f00\u53d1\u73af\u58836-react-native6\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u6211\u8bd5\u7740\u5efa\u7acb\u4e86\u4e00\u4e2aWeb\u5e94\u7528\u5f00\u53d1\u73af\u5883(6) - React Native(6)\" \/>\n<meta property=\"og:description\" content=\"\u4e0a\u6b21\u7ec8\u4e8e\u6210\u529f\u751f\u6210\u4e86Android\u865a\u62df\u8bbe\u5907\u3002\u8fd8\u9700\u8981\u7a0d\u5fae\u5b8c\u6210\u4e00\u4e9b\u5269\u4f59\u7684\u73af\u5883\u8bbe\u7f6e\uff0c\u6211\u89c9\u5f97\u73b0\u5728\u5dee\u4e0d\u591a\u53ef\u4ee5\u5f00\u59cb\u521b\u5efaRea [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u6211\u8bd5\u7740\u5efa\u7acb\u4e86\u4e00\u4e2aweb\u5e94\u7528\u5f00\u53d1\u73af\u58836-react-native6\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2024-02-24T07:05:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-29T23:07:27+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d321637434c4406c60e2f\/24-0.png\" \/>\n<meta name=\"author\" content=\"\u79d1, \u9896\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u79d1, \u9896\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"16 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e8%af%95%e7%9d%80%e5%bb%ba%e7%ab%8b%e4%ba%86%e4%b8%80%e4%b8%aaweb%e5%ba%94%e7%94%a8%e5%bc%80%e5%8f%91%e7%8e%af%e5%a2%836-react-native6%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e8%af%95%e7%9d%80%e5%bb%ba%e7%ab%8b%e4%ba%86%e4%b8%80%e4%b8%aaweb%e5%ba%94%e7%94%a8%e5%bc%80%e5%8f%91%e7%8e%af%e5%a2%836-react-native6%e3%80%82\/\",\"name\":\"\u6211\u8bd5\u7740\u5efa\u7acb\u4e86\u4e00\u4e2aWeb\u5e94\u7528\u5f00\u53d1\u73af\u5883(6) - React Native(6) - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2024-02-24T07:05:35+00:00\",\"dateModified\":\"2024-04-29T23:07:27+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e8%af%95%e7%9d%80%e5%bb%ba%e7%ab%8b%e4%ba%86%e4%b8%80%e4%b8%aaweb%e5%ba%94%e7%94%a8%e5%bc%80%e5%8f%91%e7%8e%af%e5%a2%836-react-native6%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e8%af%95%e7%9d%80%e5%bb%ba%e7%ab%8b%e4%ba%86%e4%b8%80%e4%b8%aaweb%e5%ba%94%e7%94%a8%e5%bc%80%e5%8f%91%e7%8e%af%e5%a2%836-react-native6%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e8%af%95%e7%9d%80%e5%bb%ba%e7%ab%8b%e4%ba%86%e4%b8%80%e4%b8%aaweb%e5%ba%94%e7%94%a8%e5%bc%80%e5%8f%91%e7%8e%af%e5%a2%836-react-native6%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u6211\u8bd5\u7740\u5efa\u7acb\u4e86\u4e00\u4e2aWeb\u5e94\u7528\u5f00\u53d1\u73af\u5883(6) &#8211; React Native(6)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e\",\"name\":\"\u79d1, \u9896\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g\",\"caption\":\"\u79d1, \u9896\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/keying\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e8%af%95%e7%9d%80%e5%bb%ba%e7%ab%8b%e4%ba%86%e4%b8%80%e4%b8%aaweb%e5%ba%94%e7%94%a8%e5%bc%80%e5%8f%91%e7%8e%af%e5%a2%836-react-native6%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u6211\u8bd5\u7740\u5efa\u7acb\u4e86\u4e00\u4e2aWeb\u5e94\u7528\u5f00\u53d1\u73af\u5883(6) - React Native(6) - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/\u6211\u8bd5\u7740\u5efa\u7acb\u4e86\u4e00\u4e2aweb\u5e94\u7528\u5f00\u53d1\u73af\u58836-react-native6\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"\u6211\u8bd5\u7740\u5efa\u7acb\u4e86\u4e00\u4e2aWeb\u5e94\u7528\u5f00\u53d1\u73af\u5883(6) - React Native(6)","og_description":"\u4e0a\u6b21\u7ec8\u4e8e\u6210\u529f\u751f\u6210\u4e86Android\u865a\u62df\u8bbe\u5907\u3002\u8fd8\u9700\u8981\u7a0d\u5fae\u5b8c\u6210\u4e00\u4e9b\u5269\u4f59\u7684\u73af\u5883\u8bbe\u7f6e\uff0c\u6211\u89c9\u5f97\u73b0\u5728\u5dee\u4e0d\u591a\u53ef\u4ee5\u5f00\u59cb\u521b\u5efaRea [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u6211\u8bd5\u7740\u5efa\u7acb\u4e86\u4e00\u4e2aweb\u5e94\u7528\u5f00\u53d1\u73af\u58836-react-native6\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2024-02-24T07:05:35+00:00","article_modified_time":"2024-04-29T23:07:27+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d321637434c4406c60e2f\/24-0.png"}],"author":"\u79d1, \u9896","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u79d1, \u9896","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"16 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e8%af%95%e7%9d%80%e5%bb%ba%e7%ab%8b%e4%ba%86%e4%b8%80%e4%b8%aaweb%e5%ba%94%e7%94%a8%e5%bc%80%e5%8f%91%e7%8e%af%e5%a2%836-react-native6%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e8%af%95%e7%9d%80%e5%bb%ba%e7%ab%8b%e4%ba%86%e4%b8%80%e4%b8%aaweb%e5%ba%94%e7%94%a8%e5%bc%80%e5%8f%91%e7%8e%af%e5%a2%836-react-native6%e3%80%82\/","name":"\u6211\u8bd5\u7740\u5efa\u7acb\u4e86\u4e00\u4e2aWeb\u5e94\u7528\u5f00\u53d1\u73af\u5883(6) - React Native(6) - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2024-02-24T07:05:35+00:00","dateModified":"2024-04-29T23:07:27+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e8%af%95%e7%9d%80%e5%bb%ba%e7%ab%8b%e4%ba%86%e4%b8%80%e4%b8%aaweb%e5%ba%94%e7%94%a8%e5%bc%80%e5%8f%91%e7%8e%af%e5%a2%836-react-native6%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e8%af%95%e7%9d%80%e5%bb%ba%e7%ab%8b%e4%ba%86%e4%b8%80%e4%b8%aaweb%e5%ba%94%e7%94%a8%e5%bc%80%e5%8f%91%e7%8e%af%e5%a2%836-react-native6%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e8%af%95%e7%9d%80%e5%bb%ba%e7%ab%8b%e4%ba%86%e4%b8%80%e4%b8%aaweb%e5%ba%94%e7%94%a8%e5%bc%80%e5%8f%91%e7%8e%af%e5%a2%836-react-native6%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u6211\u8bd5\u7740\u5efa\u7acb\u4e86\u4e00\u4e2aWeb\u5e94\u7528\u5f00\u53d1\u73af\u5883(6) &#8211; React Native(6)"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/8ca01ba7f7362ad4edb7da206a12f29e","name":"\u79d1, \u9896","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8a6fb3cc7ba2f69d2189ba532aec4633ea7ed75ac0af162ec367cb3abc0fb2af?s=96&d=mm&r=g","caption":"\u79d1, \u9896"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/keying\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e8%af%95%e7%9d%80%e5%bb%ba%e7%ab%8b%e4%ba%86%e4%b8%80%e4%b8%aaweb%e5%ba%94%e7%94%a8%e5%bc%80%e5%8f%91%e7%8e%af%e5%a2%836-react-native6%e3%80%82\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/38076","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=38076"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/38076\/revisions"}],"predecessor-version":[{"id":90439,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/38076\/revisions\/90439"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=38076"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=38076"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=38076"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}