{"id":286,"date":"2025-08-27T09:53:32","date_gmt":"2025-08-27T00:53:32","guid":{"rendered":"https:\/\/i-third.org\/blog\/?p=286"},"modified":"2025-08-27T09:56:04","modified_gmt":"2025-08-27T00:56:04","slug":"%e3%82%82%e3%81%86%e6%8c%ab%e6%8a%98%e3%81%97%e3%81%aa%e3%81%84%ef%bc%81react-native-expo%e3%81%a7%e3%82%a2%e3%83%97%e3%83%aa%e9%96%8b%e7%99%ba%e3%82%92%e5%a7%8b%e3%82%81%e3%82%8b5%e3%81%a4%e3%81%ae","status":"publish","type":"post","link":"https:\/\/i-third.org\/blog\/?p=286","title":{"rendered":"\u3082\u3046\u632b\u6298\u3057\u306a\u3044\uff01React Native Expo\u3067\u30a2\u30d7\u30ea\u958b\u767a\u3092\u59cb\u3081\u308b5\u3064\u306e\u30b9\u30c6\u30c3\u30d7"},"content":{"rendered":"<p>\u30e2\u30d0\u30a4\u30eb\u30a2\u30d7\u30ea\u958b\u767a\u306b\u8208\u5473\u304c\u3042\u308b\u3051\u308c\u3069\u3001\u4f55\u304b\u3089\u59cb\u3081\u3066\u3044\u3044\u304b\u5206\u304b\u3089\u306a\u3044\u2026\u3002\u305d\u3093\u306a\u60a9\u307f\u3092\u62b1\u3048\u308b\u3042\u306a\u305f\u3078\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Web\u6280\u8853\u306e\u77e5\u8b58\u304c\u3042\u308c\u3070\u8ab0\u3067\u3082\u7c21\u5358\u306b\u30cd\u30a4\u30c6\u30a3\u30d6\u30a2\u30d7\u30ea\u3092\u958b\u767a\u3067\u304d\u308b\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u300c<strong>React Native Expo<\/strong>\u300d\u306e\u59cb\u3081\u65b9\u3092\u3001\u73fe\u5f79\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u8996\u70b9\u304b\u3089\u30b9\u30c6\u30c3\u30d7\u5f62\u5f0f\u3067\u5fb9\u5e95\u89e3\u8aac\u3057\u307e\u3059\u3002\u30d6\u30ed\u30b0\u7de8\u96c6\u9577\u3068\u3057\u3066\u3001\u8aad\u8005\u306e\u7686\u3055\u3093\u304c\u62b1\u3048\u308b\u300c\u74b0\u5883\u69cb\u7bc9\u306e\u58c1\u300d\u3092\u4e57\u308a\u8d8a\u3048\u3001\u30a2\u30d7\u30ea\u958b\u767a\u306e\u7b2c\u4e00\u6b69\u3092\u8e0f\u307f\u51fa\u305b\u308b\u3088\u3046\u3001\u5206\u304b\u308a\u3084\u3059\u3055\u306b\u3053\u3060\u308f\u308a\u307e\u3057\u305f\u3002\u3053\u308c\u3092\u8aad\u3081\u3070\u3001\u4eca\u65e5\u304b\u3089\u3059\u3050\u306b\u3042\u306a\u305f\u3060\u3051\u306e\u300cHello World\u300d\u30a2\u30d7\u30ea\u304c\u4f5c\u308c\u307e\u3059\u3002<\/p>\n<hr>\n<h2>\u76ee\u6b21<\/h2>\n<ul>\n<li><a href=\"#toc-1\">Expo\u3068\u306f\uff1f\u306a\u305c\u521d\u5fc3\u8005\u306b\u6700\u9069\u306a\u306e\u304b<\/a><\/li>\n<li><a href=\"#toc-2\">\u958b\u767a\u3092\u59cb\u3081\u308b\u524d\u306b\u77e5\u3063\u3066\u304a\u304f\u3079\u304d\u524d\u63d0\u77e5\u8b58<\/a><\/li>\n<li><a href=\"#toc-3\">\u5b9f\u8df5\uff01\u300cHello World\u300d\u30a2\u30d7\u30ea\u4f5c\u6210\u306e5\u30b9\u30c6\u30c3\u30d7<\/a><\/li>\n<li><a href=\"#toc-4\">\u307e\u3068\u3081\uff1a\u30a2\u30d7\u30ea\u958b\u767a\u306e\u7b2c\u4e00\u6b69\u3092\u8e0f\u307f\u51fa\u305d\u3046<\/a><\/li>\n<li><a href=\"#toc-5\">\u6b21\u306e\u4e00\u6b69\u3078<\/a><\/li>\n<\/ul>\n<hr>\n<h2 id=\"toc-1\">Expo\u3068\u306f\uff1f\u306a\u305c\u521d\u5fc3\u8005\u306b\u6700\u9069\u306a\u306e\u304b<\/h2>\n<p><strong>Expo<\/strong>\u306f\u3001<strong>React Native<\/strong>\u3092\u30d9\u30fc\u30b9\u306b\u3057\u305f\u958b\u767a\u30c4\u30fc\u30eb\u30bb\u30c3\u30c8\u3067\u3059\u3002\u901a\u5e38\u306eReact Native\u958b\u767a\u3067\u306f\u8907\u96d1\u306b\u306a\u308a\u304c\u3061\u306a\u74b0\u5883\u69cb\u7bc9\uff08Xcode\u3084Android Studio\u306e\u8a2d\u5b9a\u306a\u3069\uff09\u3092\u5927\u5e45\u306b\u7c21\u7565\u5316\u3057\u3001JavaScript\u306e\u307f\u3067iOS\u3068Android\u306e\u4e21\u65b9\u306e\u30cd\u30a4\u30c6\u30a3\u30d6\u30a2\u30d7\u30ea\u3092\u540c\u6642\u306b\u958b\u767a\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u6700\u5927\u306e\u9b45\u529b\u306f\u3001<strong>Expo Go<\/strong>\u3068\u3044\u3046\u5c02\u7528\u30a2\u30d7\u30ea\u3092\u4f7f\u3048\u3070\u3001\u958b\u767a\u4e2d\u306e\u30a2\u30d7\u30ea\u3092\u5b9f\u6a5f\u3067\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u306b\u78ba\u8a8d\u3067\u304d\u308b\u70b9\u3067\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u958b\u767a\u306e\u30b5\u30a4\u30af\u30eb\u304c\u9a5a\u304f\u307b\u3069\u901f\u304f\u306a\u308a\u3001\u521d\u5fc3\u8005\u3067\u3082\u632b\u6298\u3057\u306b\u304f\u3044\u74b0\u5883\u304c\u6574\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<hr>\n<h2 id=\"toc-2\">\u958b\u767a\u3092\u59cb\u3081\u308b\u524d\u306b\u77e5\u3063\u3066\u304a\u304f\u3079\u304d\u524d\u63d0\u77e5\u8b58<\/h2>\n<p>React Native Expo\u3092\u59cb\u3081\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u77e5\u8b58\u304c\u3042\u308b\u3068\u30b9\u30e0\u30fc\u30ba\u3067\u3059\u3002<\/p>\n<ul>\n<li><strong>Node.js<\/strong>: JavaScript\u306e\u5b9f\u884c\u74b0\u5883\u3067\u3059\u3002npm\u3082\u542b\u307e\u308c\u3066\u304a\u308a\u3001\u958b\u767a\u306b\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u7ba1\u7406\u3059\u308b\u305f\u3081\u306b\u5fc5\u9808\u3067\u3059\u3002<\/li>\n<li><strong>npm<\/strong>: Node.js\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u3067\u3059\u3002<code>npm install<\/code>\u30b3\u30de\u30f3\u30c9\u3067\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001\u4f9d\u5b58\u95a2\u4fc2\u3092\u7ba1\u7406\u3057\u307e\u3059\u3002<\/li>\n<li><strong>React\u306e\u57fa\u790e<\/strong>: \u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u6307\u5411\u3001JSX\uff08JavaScript XML\uff09\u306e\u69cb\u6587\u3001\u72b6\u614b\u7ba1\u7406\uff08<code>useState<\/code>\uff09\u306a\u3069\u306e\u57fa\u672c\u7684\u306a\u6982\u5ff5\u3092\u7406\u89e3\u3057\u3066\u304a\u304f\u3068\u3001\u958b\u767a\u304c\u3088\u308a\u697d\u306b\u306a\u308a\u307e\u3059\u3002<\/li>\n<\/ul>\n<hr>\n<h2 id=\"toc-3\">\u5b9f\u8df5\uff01\u300cHello World\u300d\u30a2\u30d7\u30ea\u4f5c\u6210\u306e5\u30b9\u30c6\u30c3\u30d7<\/h2>\n<p>\u3053\u3053\u304b\u3089\u3001\u5177\u4f53\u7684\u306a\u624b\u9806\u3092\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7\u3067\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n<h3><strong>\u30b9\u30c6\u30c3\u30d71: Expo CLI\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/strong><\/h3>\n<p>\u307e\u305a\u3001npm\u3092\u4f7f\u3063\u3066<strong>Expo CLI<\/strong>\u3092\u30b0\u30ed\u30fc\u30d0\u30eb\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u4f5c\u6210\u3084\u7ba1\u7406\u304c\u7c21\u5358\u306b\u884c\u3048\u307e\u3059\u3002<\/p>\n<pre><code>npm install -g expo-cli<\/code><\/pre>\n<h3><strong>\u30b9\u30c6\u30c3\u30d72: \u65b0\u898f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u4f5c\u6210<\/strong><\/h3>\n<p>\u6b21\u306b\u3001<code>expo init<\/code>\u30b3\u30de\u30f3\u30c9\u3067\u65b0\u3057\u3044\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u4eca\u56de\u306f\u6700\u3082\u30b7\u30f3\u30d7\u30eb\u306a\u300cblank\u300d\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u9078\u3073\u307e\u3059\u3002<\/p>\n<pre><code>expo init my-first-app<\/code><\/pre>\n<p>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u540d\uff08\u4f8b: <code>my-first-app<\/code>\uff09\u306f\u81ea\u7531\u306b\u6c7a\u3081\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3><strong>\u30b9\u30c6\u30c3\u30d73: \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3078\u79fb\u52d5<\/strong><\/h3>\n<p>\u4f5c\u6210\u3057\u305f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\u3057\u307e\u3059\u3002<\/p>\n<pre><code>cd my-first-app<\/code><\/pre>\n<h3><strong>\u30b9\u30c6\u30c3\u30d74: \u958b\u767a\u30b5\u30fc\u30d0\u30fc\u306e\u8d77\u52d5<\/strong><\/h3>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u958b\u767a\u30b5\u30fc\u30d0\u30fc\u304c\u8d77\u52d5\u3057\u3001\u30d6\u30e9\u30a6\u30b6\u3067<strong>Expo Dev Tools<\/strong>\u304c\u958b\u304d\u307e\u3059\u3002<\/p>\n<pre><code>npm start<\/code><\/pre>\n<p>\u3053\u306e\u753b\u9762\u306b\u8868\u793a\u3055\u308c\u308bQR\u30b3\u30fc\u30c9\u3092\u3001\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f<strong>Expo Go<\/strong>\u30a2\u30d7\u30ea\u3067\u8aad\u307f\u53d6\u308a\u307e\u3059\u3002<\/p>\n<h3><strong>\u30b9\u30c6\u30c3\u30d75: \u753b\u9762\u306b\u300cHello World\u300d\u3092\u8868\u793a<\/strong><\/h3>\n<p>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30eb\u30fc\u30c8\u306b\u3042\u308b<code>App.js<\/code>\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304d\u3001\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u306b\u66f8\u304d\u63db\u3048\u307e\u3059\u3002<\/p>\n<pre><code>import { StyleSheet, Text, View } from 'react-native';\n\nexport default function App() {\nreturn (\n<View style={styles.container}>\n<Text>Hello World<\/Text>\n<\/View>\n);\n}\n\nconst styles = StyleSheet.create({\ncontainer: {\nflex: 1,\nbackgroundColor: '#fff',\nalignItems: 'center',\njustifyContent: 'center',\n},\n});\n<\/code><\/pre>\n<p>\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3059\u308b\u3068\u3001\u5373\u5ea7\u306b\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u306b\u300cHello World\u300d\u3068\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u3067\u3001\u3042\u306a\u305f\u306e\u6700\u521d\u306e\u30a2\u30d7\u30ea\u304c\u5b8c\u6210\u3067\u3059\uff01<\/p>\n<hr>\n<h2 id=\"toc-4\">\u307e\u3068\u3081\uff1a\u30a2\u30d7\u30ea\u958b\u767a\u306e\u7b2c\u4e00\u6b69\u3092\u8e0f\u307f\u51fa\u305d\u3046<\/h2>\n<p>\u672c\u8a18\u4e8b\u3067\u306f\u3001React Native Expo\u3092\u4f7f\u3063\u305f\u30b7\u30f3\u30d7\u30eb\u306a\u300cHello World\u300d\u30a2\u30d7\u30ea\u306e\u4f5c\u6210\u624b\u9806\u3092\u89e3\u8aac\u3057\u307e\u3057\u305f\u3002\u8907\u96d1\u306a\u74b0\u5883\u8a2d\u5b9a\u3092\u30b9\u30ad\u30c3\u30d7\u3067\u304d\u308bExpo\u306f\u3001\u30a2\u30d7\u30ea\u958b\u767a\u3092\u59cb\u3081\u305f\u3044\u5168\u3066\u306e\u4eba\u306b\u3068\u3063\u3066\u3001\u6700\u9069\u306a\u9078\u629e\u80a2\u3067\u3059\u3002\u3053\u306e\u6210\u529f\u4f53\u9a13\u3092\u81ea\u4fe1\u306b\u3001\u305c\u3072\u6b21\u306e\u30b9\u30c6\u30c3\u30d7\u3078\u9032\u3093\u3067\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<hr>\n<h2 id=\"toc-5\">\u6b21\u306e\u4e00\u6b69\u3078<\/h2>\n<p>\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3093\u3067\u3001\u3055\u3089\u306bReact Native\u958b\u767a\u3092\u6df1\u3081\u305f\u3044\u3068\u611f\u3058\u305f\u65b9\u306f\u3001\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3082\u53c2\u8003\u306b\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><a href=\"#\">\u3010\u95a2\u9023\u8a18\u4e8b\u3011React Native\u3067\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u5b66\u3076<\/a><\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u304c\u5c11\u3057\u3067\u3082\u5f79\u306b\u7acb\u3063\u305f\u306a\u3089\u3001SNS\u3067\u306e\u30b7\u30a7\u30a2\u3084\u30b5\u30a4\u30c8\u306e\u30d6\u30c3\u30af\u30de\u30fc\u30af\u3092\u304a\u9858\u3044\u3057\u307e\u3059\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30e2\u30d0\u30a4\u30eb\u30a2\u30d7\u30ea\u958b\u767a\u306b\u8208\u5473\u304c\u3042\u308b\u3051\u308c\u3069\u3001\u4f55\u304b\u3089\u59cb\u3081\u3066\u3044\u3044\u304b\u5206\u304b\u3089\u306a\u3044\u2026\u3002\u305d\u3093\u306a\u60a9\u307f\u3092\u62b1\u3048\u308b\u3042\u306a\u305f\u3078\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Web\u6280\u8853\u306e\u77e5\u8b58\u304c\u3042\u308c\u3070\u8ab0\u3067\u3082\u7c21\u5358\u306b\u30cd\u30a4\u30c6\u30a3\u30d6\u30a2\u30d7\u30ea\u3092\u958b\u767a\u3067\u304d\u308b\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u300cReact Native E&hellip;<\/p>\n","protected":false},"author":1,"featured_media":289,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,7],"tags":[],"class_list":["post-286","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-4","category-7"],"_links":{"self":[{"href":"https:\/\/i-third.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/286","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/i-third.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/i-third.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/i-third.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/i-third.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=286"}],"version-history":[{"count":2,"href":"https:\/\/i-third.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/286\/revisions"}],"predecessor-version":[{"id":290,"href":"https:\/\/i-third.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/286\/revisions\/290"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/i-third.org\/blog\/index.php?rest_route=\/wp\/v2\/media\/289"}],"wp:attachment":[{"href":"https:\/\/i-third.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=286"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/i-third.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=286"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/i-third.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=286"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}