<\/figure>\n<\/p>\nudio\u3001Android SDK Tools\u548cAndroid Platform-tools\u3002\u5728\u5b89\u88c5Android Studio\u4e4b\u524d\uff0c\u4f60\u9700\u8981\u5b89\u88c5Java Development Kit\uff08JDK\uff098\u6216\u66f4\u9ad8\u7248\u672c\u3002<\/p>\n
\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u4f60\u9700\u8981\u521b\u5efaReact Native\u5e94\u7528\u7a0b\u5e8f\u3002\u4f7f\u7528React Native CLI\u521b\u5efa\u65b0\u9879\u76ee\uff0c\u4f1a\u81ea\u52a8\u751f\u6210\u9879\u76ee\u6587\u4ef6\u3002\u6587\u4ef6\u5939\u7ed3\u6784\u5982\u4e0b\uff1a<\/p>\n
“`<\/p>\n
– android\/<\/p>\n
– ios\/<\/p>\n
– node_modules\/<\/p>\n
– App.js<\/p>\n
– index.js<\/p>\n
– package.json<\/p>\n
“`<\/p>\n
– `android`\u548c`ios`\u6587\u4ef6\u5939\u662f\u4e13\u95e8\u7528\u4e8e\u8fd0\u884c\u5e94\u7528\u7a0b\u5e8f\u7684Android\u548ciOS\u6587\u4ef6\u3002<\/p>\n
– `node_modules`\u6587\u4ef6\u5939\u5305\u542bReact Native\u5e94\u7528\u7a0b\u5e8f\u9700\u8981\u7684\u6240\u6709\u8f6f\u4ef6\u5305\u3002<\/p>\n
– `App.js`\u662fReact Native\u5e94\u7528\u7a0b\u5e8f\u7684\u5165\u53e3\u6587\u4ef6\u3002<\/p>\n
– `index.js`\u7528\u4e8e\u5411React Native\u5e94\u7528\u7a0b\u5e8f\u6ce8\u518c\u5e94\u7528\u7a0b\u5e8f\u7ec4\u4ef6\u3002<\/p>\n
– `package.json`\u5305\u542b\u9879\u76ee\u7684\u5143\u6570\u636e\uff0c\u4f8b\u5982\u540d\u79f0\u3001\u7248\u672c\u548c\u4f9d\u8d56\u9879\u3002<\/p>\n
\u73b0\u5728\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528React Native CLI\u8fd0\u884c\u5e94\u7528\u7a0b\u5e8f\u3002\u5728\u547d\u4ee4\u884c\u4e2d\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n
“`<\/p>\n
$ react-native run-android<\/p>\n
“`<\/p>\n
\u8fd0\u884c\u4e0a\u8ff0\u547d\u4ee4\uff0c\u5c06\u542f\u52a8React Native\u5e94\u7528\u7a0b\u5e8f\uff0c\u5e76\u5f00\u59cb\u5728\u8fde\u63a5\u7684Android\u8bbe\u5907\u6216\u6a21\u62df\u5668\u4e2d\u8fd0\u884c\u3002\u5e94\u7528\u7a0b\u5e8f\u542f\u52a8\u540e\uff0c\u4f60\u53ef\u4ee5\u5728\u8bbe\u5907\u4e0a\u67e5\u770b\u3001\u6d4b\u8bd5\uff0c\u5e76\u4e14\u5f00\u59cb\u7f16\u5199React Native\u4ee3\u7801\u3002<\/p>\n
\u603b\u7ed3\u4e00\u4e0b\uff0cReact Native\u662f\u4e00\u79cd\u4f7f\u7528JavaScript\u548cReact\u6784\u5efa\u539f\u751f\u79fb\u52a8\u5e94\u7528\u7a0b\u5e8f\u7684\u6846\u67b6\u3002\u5b83\u5141\u8bb8\u4f60\u4f7f\u7528\u76f8\u540c\u7684React\u6846\u67b6\u6784\u5efaWeb\u5e94\u7528\u7a0b\u5e8f\uff0c\u5e76\u4f7f\u7528React Native\u8f7b\u677e\u5730\u5c06\u8fd9\u4e9b\u5e94\u7528\u7a0b\u5e8f\u79fb\u690d\u5230\u79fb\u52a8\u5e73\u53f0\u4e0a\u3002React Native\u7684\u539f\u7406\u662f\u5c06\u5e94\u7528\u7a0b\u5e8f\u7684UI\u63cf\u8ff0\u4e3a\u58f0\u660e\u6027\u7ec4\u4ef6\uff0c\u5e76\u5c06\u8fd9\u4e9b\u7ec4\u4ef6\u94fe\u63a5\u5230\u672c\u5730\u5e73\u53f0\u7684\u539f\u751f\u4ee3\u7801\u548cAPI\u3002\u4e0e\u6b64\u540c\u65f6\uff0cReact Native\u5e94\u7528\u7a0b\u5e8f\u7531\u591a\u4e2a\u6a21\u5757\u7ec4\u6210\uff0c\u6bcf\u4e2a\u6a21\u5757\u90fd\u6709\u5176\u72ec\u7acb\u5f00\u53d1\u7684JavaScript\u6587\u4ef6\u3002\u8fd9\u4f7f\u5f97\u5f00\u53d1\u4eba\u5458\u53ef\u4ee5\u5728\u6574\u4e2a\u5e94\u7528\u7a0b\u5e8f\u4e2d\u91cd\u7528\u4ee3\u7801\uff0c\u5e76\u4e14\u53ef\u4ee5\u968f\u65f6\u6dfb\u52a0\u6216\u5220\u9664\u6a21\u5757\uff0c\u800c\u4e0d\u4f1a\u5f71\u54cd\u5230\u5e94\u7528\u7a0b\u5e8f\u7684\u5176\u4f59\u90e8\u5206\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"
React Native\u662f\u4e00\u79cd\u4f7f\u7528JavaScript\u548cReact\u6784\u5efa\u539f\u751f\u79fb\u52a8\u5e94\u7528\u7a0b\u5e8f\u7684\u6846\u67b6\u3002\u5b83\u5141\u8bb8\u5f00\u53d1\u4eba\u5458\u4f7f\u7528\u76f8\u540c\u7684React\u6846\u67b6\u6784\u5efaWeb\u5e94\u7528\u7a0b\u5e8f\uff0c\u5e76\u4f7f\u7528React Native\u8f7b\u677e\u5730\u5c06\u8fd9\u4e9b\u5e94\u7528<\/p>\n","protected":false},"author":14,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[81,25055,14,23480,634],"class_list":["post-19748","post","type-post","status-publish","format-standard","hentry","category-zuoapp","tag-81","tag-app","tag-14","tag-appapp","tag-634"],"_links":{"self":[{"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/posts\/19748","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/users\/14"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/comments?post=19748"}],"version-history":[{"count":1,"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/posts\/19748\/revisions"}],"predecessor-version":[{"id":19782,"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/posts\/19748\/revisions\/19782"}],"wp:attachment":[{"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/media?parent=19748"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/categories?post=19748"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/tags?post=19748"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}