{"id":2511,"date":"2019-12-16T21:20:35","date_gmt":"2019-12-16T12:20:35","guid":{"rendered":"https:\/\/deha.co.jp\/magazine\/?p=2511"},"modified":"2021-07-24T19:11:31","modified_gmt":"2021-07-24T10:11:31","slug":"react-native-typescript-2019-version","status":"publish","type":"post","link":"https:\/\/deha.co.jp\/magazine\/react-native-typescript-2019-version\/","title":{"rendered":"\u3010\u7c21\u5358\u3011React Native\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306bTypeScript\u3092\u5c0e\u5165\u3059\u308b\u306b\u306f\uff1f\u3010\u30a2\u30d7\u30ea\u958b\u767a\u306b\uff01\u3011"},"content":{"rendered":"\n<p> v0.57\u4ee5\u964d<a href=\"https:\/\/deha.co.jp\/magazine\/application-development-on-react-native-platform\/\">React Native<\/a>\u304c\u516c\u5f0f\u3067TypeScript\u306b\u5bfe\u5fdc\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002 <br><br>Babel7\u3067TypeScript\u3092\u30c8\u30e9\u30f3\u30b9\u30b3\u30f3\u30d1\u30a4\u30eb\u51fa\u6765\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u305f\u3081\u3001\u305d\u306e\u4ed5\u7d44\u307f\u3092React Native\u304c\u5229\u7528\u3059\u308b\u5f62\u3067\u5b9f\u73fe\u3055\u308c\u3066\u3044\u307e\u3059\u3002<strong> \u305f\u3060\u3057\u3001Babel\u306f\u53e4\u3044JavaScript\u3078\u306e\u30c8\u30e9\u30f3\u30b9\u30b3\u30f3\u30d1\u30a4\u30eb\u3092\u884c\u3046\u3060\u3051\u3067\u3001\u578b\u30c1\u30a7\u30c3\u30af\u307e\u3067\u306f\u884c\u3063\u3066\u304f\u308c\u307e\u305b\u3093\u3002 <br><\/strong><br>\u305d\u306e\u305f\u3081\u578b\u30c1\u30a7\u30c3\u30af\u306ftsc\u30b3\u30de\u30f3\u30c9\u3067\u5225\u9014\u5b9f\u884c\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 <\/p>\n\n\n\n<p>\u305d\u3053\u3067\u3001\u3053\u306e\u8a18\u4e8b\u3067\u306fBabel7\u3067React Native+TypeScript\u3092\u5b9f\u884c\u3057\u3064\u3064\u3001tsc\u30b3\u30de\u30f3\u30c9\u306b\u3088\u308b\u578b\u30c1\u30a7\u30c3\u30af\u304c\u51fa\u6765\u308b\u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b\u305f\u3081\u306e\u624b\u9806\u3092\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<ul><li><strong>React Native\u3067\u30a2\u30d7\u30ea\u958b\u767a\u3092\u884c\u3044\u305f\u3044\u65b9<\/strong><\/li><li><strong>React Native\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306bTypeScript\u3092\u5c0e\u5165\u3059\u308b\u65b9\u6cd5\u3092\u77e5\u308a\u305f\u3044\u65b9<\/strong><\/li><li><strong>React Native\u306e\u74b0\u5883\u958b\u767a\u306e\u65b9\u6cd5\u3092\u77e5\u308a\u305f\u3044\u65b9<\/strong><\/li><\/ul>\n\n\n\n<p>\u3053\u308c\u3089\u306b\u5f53\u3066\u306f\u307e\u308b\u65b9\u306b\u304a\u3059\u3059\u3081\u306e\u8a18\u4e8b\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u3092\u8aad\u3081\u3070TypeScript\u3092React Native\u306b\u5c0e\u5165\u3059\u308b\u65b9\u6cd5\u304c\u4e38\u308f\u304b\u308a\u3067\u3059\u3088\u3002<\/p>\n\n\n\n<!--more-->\n\n\n\n<h2 class=\"wp-block-heading\">\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210<\/h2>\n\n\n\n<p>\u307e\u305a\u306f\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3067React Native\u306e\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">react-native init TSSampleApp <\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u30b7\u30df\u30e5\u30ec\u30fc\u30bf\u30fc\u3092\u8d77\u52d5<\/h2>\n\n\n\n<p>\u30b5\u30f3\u30d7\u30eb\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304c\u4f5c\u6210\u3067\u304d\u305f\u3089\u3001<br>\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u753b\u9762\u304c\u6b63\u5e38\u306b\u8868\u793a\u3055\u308c\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002 <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">npm run ios <\/pre>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/deha.co.jp\/magazine\/wp-content\/uploads\/2019\/12\/run_ios.png\" alt=\"\" class=\"wp-image-2403\" width=\"378\" height=\"801\"\/><\/figure>\n\n\n\n<p>\u4eca\u56de\u306fTypeScript\u306e\u74b0\u5883\u69cb\u7bc9\u304c\u30e1\u30a4\u30f3\u3067\u3059\u306e\u3067\u3001Android\u306f\u5272\u611b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">App.js\u3092App.tsx\u306b\u30ea\u30cd\u30fc\u30e0<\/h2>\n\n\n\n<p>\u6b21\u306b\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3067App.tsx\u306b\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u30ea\u30cd\u30fc\u30e0\u3057\u307e\u3059\u3002 <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">mv App.js App.tsx <\/pre>\n\n\n\n<p>.tsx\u306fJSX\u3092\u8fd4\u3059\u30d5\u30a1\u30a4\u30eb\u3067TypeScript\u3092\u5229\u7528\u3059\u308b\u5834\u5408\u306e\u62e1\u5f35\u5b50\u3067\u3059\u3002 <br>\u30ea\u30cd\u30fc\u30e0\u5f8c\u306b\u30b7\u30df\u30e5\u30ec\u30fc\u30bf\u30fc\u3092\u78ba\u8a8d\u3059\u308b\u3068\u4e0b\u8a18\u306e\u30a8\u30e9\u30fc\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002 <\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/deha.co.jp\/magazine\/wp-content\/uploads\/2019\/12\/typescript-typed-error.png\" alt=\"\" class=\"wp-image-2516\" width=\"387\" height=\"681\"\/><\/figure>\n\n\n\n<p>\u3053\u308c\u306f\u5229\u7528\u3057\u3066\u3044\u308bReact\u3084React Native\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u578b\u5b9a\u7fa9\u30d5\u30a1\u30a4\u30eb\u304c\u898b\u3064\u304b\u3089\u305a\u3001<br>TypeScript\u306e\u30b3\u30f3\u30d1\u30a4\u30eb\u30a8\u30e9\u30fc\u306b\u306a\u308b\u305f\u3081\u3067\u3059\u3002 <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30e9\u30a4\u30d6\u30e9\u30ea\u3068\u578b\u5b9a\u7fa9\u30d5\u30a1\u30a4\u30eb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n\n\n\n<p>\u6b21\u306b\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3067TypeScript\u672c\u4f53\u3068React Native\u958b\u767a\u306b\u5fc5\u8981\u306a\u578b\u5b9a\u7fa9\u30d5\u30a1\u30a4\u30eb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002 <br>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u30e9\u30a4\u30d6\u30e9\u30ea\u306fReact Native\u306e\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u5f93\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">yarn add --dev typescript @types\/jest @types\/react @types\/react-native @types\/react-test-renderer <\/pre>\n\n\n\n<p>@types\u3067\u59cb\u307e\u3063\u3066\u3044\u308bTypeScript\u306e\u578b\u5b9a\u7fa9\u30d5\u30a1\u30a4\u30eb\u306f<a href=\"https:\/\/github.com\/DefinitelyTyped\/DefinitelyTyped\">DefinitelyTyped<\/a>\u3067\u7ba1\u7406\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Metro Bundler\u3092\u518d\u8d77\u52d5\u3059\u308b<\/h2>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/deha.co.jp\/magazine\/wp-content\/uploads\/2019\/12\/metro-bundler.png\" alt=\"\" class=\"wp-image-2517\" width=\"570\" height=\"153\"\/><\/figure>\n\n\n\n<p>\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u4e0a\u8a18\u306eMetro Bundler\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u8d77\u52d5\u304c\u5b8c\u4e86\u3057\u305f\u3089\u4e0b\u8a18\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<br>\u3053\u308c\u3067TypeScript\u3092Babel\u3067\u30c8\u30e9\u30f3\u30b9\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3066\u5b9f\u884c\u51fa\u6765\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/deha.co.jp\/magazine\/wp-content\/uploads\/2019\/12\/run_ios.png\" alt=\"\" class=\"wp-image-2403\" width=\"378\" height=\"801\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">React Native\u7528\u306etsconfig.json\u3092\u4f5c\u6210<\/h2>\n\n\n\n<p> \u6b21\u306btsc\u30b3\u30de\u30f3\u30c9\u3067TypeScript\u306e\u578b\u30c1\u30a7\u30c3\u30af\u304c\u51fa\u6765\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<br><br>\u4e0b\u8a18\u306e\u5185\u5bb9\u3067tsconfig.json\u3092\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30eb\u30fc\u30c8\u306b\u4f5c\u6210\u3057\u307e\u3059\u3002 <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">{<br>   \"compilerOptions\": {<br>     \"allowJs\": true,<br>     \"allowSyntheticDefaultImports\": true,<br>     \"esModuleInterop\": true,<br>     \"isolatedModules\": true,<br>     \"jsx\": \"react\",<br>     \"lib\": [\"es6\"],<br>     \"moduleResolution\": \"node\u201d,<br>     \"noEmit\": true,<br>     \"strict\": true,<br>     \"target\": \"esnext\"<br>   },<br>   \"exclude\": [<br>     \"node_modules\",<br>     \"babel.config.js\",<br>     \"metro.config.js\",<br>     \"jest.config.js\"<br>   ]<br> }<\/pre>\n\n\n\n<p><code>noEmit: true<\/code>\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3067JavaScript\u306e\u30c8\u30e9\u30f3\u30b9\u30b3\u30f3\u30d1\u30a4\u30eb\u306fBabel\u306b\u4efb\u305b\u3001 tsc\u30b3\u30de\u30f3\u30c9\u306f\u30d5\u30a1\u30a4\u30eb\u51fa\u529b\u306f\u305b\u305a\u578b\u30c1\u30a7\u30c3\u30af\u306e\u307f\u884c\u3046\u3088\u3046\u306b\u3057\u3066\u3044\u307e\u3059\u3002 <\/p>\n\n\n\n<p>\u4e0a\u8a18\u306e\u8a2d\u5b9a\u5185\u5bb9\u3082React Native\u306e\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u5f93\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">tsc\u30b3\u30de\u30f3\u30c9\u3092npm-scripts\u306ebuild\u306b\u8ffd\u52a0<\/h2>\n\n\n\n<p>\u6b21\u306btsc\u30b3\u30de\u30f3\u30c9\u3092npm-scripts\u306ebuild\u3067\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306bpackage.json\u3092\u4fee\u6b63\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\"scripts\": {\n     \"build\": \"tsc\",\n     \u2026\n },<\/pre>\n\n\n\n<p> \u8ffd\u52a0\u3067\u304d\u305f\u3089\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002 <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">npm run build <\/pre>\n\n\n\n<p>\u5b9f\u884c\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&gt; tsc\nApp.tsx:26:18 - error TS2304: Cannot find name 'React$Node'.\n 26 const App: () =&gt; React$Node = () =&gt; {\n                     \n App.tsx:35:12 - error TS2304: Cannot find name 'global'.\n 35           {global.HermesInternal == null ? null : (\n     \n Found 2 errors.<\/pre>\n\n\n\n<p><code>React$Node<\/code>\u306f<code>React.ReactNode<\/code>\u306b\u66f8\u304d\u63db\u3048\u3001<br><code>HermesInternal<\/code>\u306b\u95a2\u3057\u3066\u306f<a href=\"https:\/\/github.com\/react-native-community\/react-native-template-typescript\/issues\/71\">Cannot find name &#8216;global&#8217;.ts(2304)<\/a> \u306e\u30a4\u30b7\u30e5\u30fc\u3092\u53c2\u8003\u306b\u4fee\u6b63\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">flow\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u524a\u9664<\/h2>\n\n\n\n<p>TypeScript\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u5229\u7528\u305b\u305a\u306bReact Native\u30a2\u30d7\u30ea\u3092\u4f5c\u6210\u3057\u305f\u5834\u5408\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306fflow\u3092\u5229\u7528\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002 <br><br>TypeScript\u3092\u5229\u7528\u3059\u308b\u5834\u5408\u306f\u4e0d\u8981\u306a\u306e\u3067\u3001 \u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3067\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u524a\u9664\u3057\u307e\u3059\u3002 <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">rm .flowconfig<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"> \u7d42\u308f\u308a\u306b<\/h2>\n\n\n\n<p>\u3053\u308c\u3067TypeScript\u3092\u5229\u7528\u3057\u3066React Native\u958b\u767a\u304c\u884c\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002 <br><br>TypeScript\u3092\u5229\u7528\u3057\u3066React Native\u958b\u767a\u3092\u884c\u3046\u3053\u3068\u3067\u3001<strong>JavaScript\u306e\u30b3\u30fc\u30c9\u306e\u307f\u3067iOS\u3068Android\u4e21\u65b9\u306e\u30a2\u30d7\u30ea\u3092\u958b\u767a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/strong><br><br>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u74b0\u5883\u69cb\u7bc9\u306e\u624b\u9806\u3092\u7d39\u4ecb\u3057\u3066\u3044\u304d\u307e\u3057\u305f\u3002<a href=\"https:\/\/deha.co.jp\/magazine\/application-development-on-react-native-platform\/\">\u3053\u3061\u3089\u306e\u8a18\u4e8b<\/a>\u3067\u306f\u5b9f\u969b\u306e\u753b\u9762\u306e\u958b\u767a\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002<br>\u305c\u3072\u5408\u308f\u305b\u3066\u30c1\u30a7\u30c3\u30af\u3057\u3066\u307f\u3066\u4e0b\u3055\u3044\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator is-style-wide\"\/>\n\n\n\n<p>\u3053\u3046\u3057\u305f\u30a2\u30d7\u30ea\u958b\u767a\u3092\u5916\u6ce8\u3057\u3066\u307f\u308b\u306e\u306f\u3044\u304b\u304c\u3067\u3057\u3087\u3046\u304b\u3002&nbsp;<strong>deha\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u30ba\u3067\u306f<a href=\"https:\/\/deha.co.jp\/magazine\/why-vietnams\/\">\u30aa\u30d5\u30b7\u30e7\u30a2\u958b\u767a<\/a>\u306b\u3088\u3063\u3066\u4f4e\u30b3\u30b9\u30c8\u3067\u8fc5\u901f\u306a\u958b\u767a\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002<\/strong><\/p>\n\n\n\n<p>Laravel\u306b\u95a2\u3057\u3066\u8a73\u3057\u304f\u304a\u8a71\u3092\u805e\u304d\u305f\u3044\u65b9\u3001\u958b\u767a\u76f8\u8ac7\u3084\u7121\u6599\u304a\u898b\u7a4d\u308a\u3092\u3057\u305f\u3044\u65b9\u306f<a href=\"https:\/\/deha.co.jp\/contact\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u3053\u3061\u3089<\/a>\u304b\u3089\u3054\u6c17\u8efd\u306b\u304a\u554f\u3044\u5408\u308f\u305b\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u25bc deha\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u3078\u306e\u7c21\u5358\u898b\u7a4d\u3082\u308a\u306e\u4f9d\u983c\u306f<a href=\"https:\/\/deha.co.jp\/contact\" target=\"_blank\" rel=\"noreferrer noopener\">\u3053\u3061\u3089<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>v0.57\u4ee5\u964dReact Native\u304c\u516c\u5f0f\u3067TypeScript\u306b\u5bfe\u5fdc\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002 Babel7\u3067TypeScript\u3092\u30c8\u30e9\u30f3\u30b9\u30b3\u30f3\u30d1\u30a4\u30eb\u51fa\u6765\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u305f\u3081\u3001\u305d\u306e\u4ed5\u7d44\u307f\u3092React Native\u304c\u5229\u7528\u3059\u308b\u5f62\u3067\u5b9f\u73fe\u3055\u308c\u3066\u3044\u307e\u3059\u3002 \u305f\u3060\u3057\u3001Babel\u306f\u53e4\u3044JavaScript\u3078\u306e\u30c8\u30e9\u30f3\u30b9\u30b3\u30f3\u30d1\u30a4\u30eb\u3092\u884c\u3046\u3060\u3051\u3067\u3001\u578b\u30c1\u30a7\u30c3\u30af\u307e\u3067\u306f\u884c\u3063\u3066\u304f\u308c\u307e\u305b\u3093\u3002 \u305d\u306e\u305f\u3081\u578b\u30c1\u30a7\u30c3\u30af\u306ftsc\u30b3\u30de\u30f3\u30c9\u3067\u5225\u9014\u5b9f\u884c\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 \u305d\u3053\u3067\u3001\u3053\u306e\u8a18\u4e8b\u3067\u306fBabel7\u3067React Native+TypeScript\u3092\u5b9f\u884c\u3057\u3064\u3064\u3001tsc\u30b3\u30de\u30f3\u30c9\u306b\u3088\u308b\u578b\u30c1\u30a7\u30c3\u30af\u304c\u51fa\u6765\u308b\u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b\u305f\u3081\u306e\u624b\u9806\u3092\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002 React Native\u3067\u30a2\u30d7\u30ea\u958b\u767a\u3092\u884c\u3044\u305f\u3044\u65b9 React Native\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306bTypeScript\u3092\u5c0e\u5165\u3059\u308b\u65b9\u6cd5\u3092\u77e5\u308a\u305f\u3044\u65b9 React Native\u306e\u74b0\u5883\u958b\u767a\u306e\u65b9\u6cd5\u3092\u77e5\u308a\u305f\u3044\u65b9 \u3053\u308c\u3089\u306b\u5f53\u3066\u306f\u307e\u308b\u65b9\u306b\u304a\u3059\u3059\u3081\u306e\u8a18\u4e8b\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u3092\u8aad\u3081\u3070TypeScript\u3092React Native\u306b\u5c0e\u5165\u3059\u308b\u65b9\u6cd5\u304c\u4e38\u308f\u304b\u308a\u3067\u3059\u3088\u3002<\/p>\n","protected":false},"author":2,"featured_media":2519,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":"","_links_to":"","_links_to_target":""},"categories":[440,19],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010\u7c21\u5358\u3011React Native\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306bTypeScript\u3092\u5c0e\u5165\u3059\u308b\u306b\u306f\uff1f\u3010\u30a2\u30d7\u30ea\u958b\u767a\u306b\uff01\u3011 - DEHA Magazine<\/title>\n<meta name=\"description\" content=\"\u30d9\u30c8\u30ca\u30e0\u6280\u8853\u8005\u96c6\u56e3DEHA\u304c\u304a\u5c4a\u3051\u3059\u308b\u30aa\u30d5\u30b7\u30e7\u30a2\u958b\u767a\u60c5\u5831\u30e1\u30c7\u30a3\u30a2\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/deha.co.jp\/magazine\/react-native-typescript-2019-version\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010\u7c21\u5358\u3011React Native\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306bTypeScript\u3092\u5c0e\u5165\u3059\u308b\u306b\u306f\uff1f\u3010\u30a2\u30d7\u30ea\u958b\u767a\u306b\uff01\u3011 - DEHA Magazine\" \/>\n<meta property=\"og:description\" content=\"\u30d9\u30c8\u30ca\u30e0\u6280\u8853\u8005\u96c6\u56e3DEHA\u304c\u304a\u5c4a\u3051\u3059\u308b\u30aa\u30d5\u30b7\u30e7\u30a2\u958b\u767a\u60c5\u5831\u30e1\u30c7\u30a3\u30a2\" \/>\n<meta property=\"og:url\" content=\"https:\/\/deha.co.jp\/magazine\/react-native-typescript-2019-version\/\" \/>\n<meta property=\"og:site_name\" content=\"DEHA Magazine\" \/>\n<meta property=\"article:published_time\" content=\"2019-12-16T12:20:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-07-24T10:11:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/deha.co.jp\/magazine\/wp-content\/uploads\/2019\/12\/react-native-typescript.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t<meta property=\"og:image:height\" content=\"427\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Mai Tran\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mai Tran\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/deha.co.jp\/magazine\/react-native-typescript-2019-version\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/deha.co.jp\/magazine\/react-native-typescript-2019-version\/\"},\"author\":{\"name\":\"Mai Tran\",\"@id\":\"https:\/\/deha.co.jp\/magazine\/#\/schema\/person\/301963170c966f39bbe2f7914450e1f9\"},\"headline\":\"\u3010\u7c21\u5358\u3011React Native\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306bTypeScript\u3092\u5c0e\u5165\u3059\u308b\u306b\u306f\uff1f\u3010\u30a2\u30d7\u30ea\u958b\u767a\u306b\uff01\u3011\",\"datePublished\":\"2019-12-16T12:20:35+00:00\",\"dateModified\":\"2021-07-24T10:11:31+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/deha.co.jp\/magazine\/react-native-typescript-2019-version\/\"},\"wordCount\":105,\"publisher\":{\"@id\":\"https:\/\/deha.co.jp\/magazine\/#organization\"},\"articleSection\":[\"React Native\",\"\u30b7\u30b9\u30c6\u30e0\u958b\u767a\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/deha.co.jp\/magazine\/react-native-typescript-2019-version\/\",\"url\":\"https:\/\/deha.co.jp\/magazine\/react-native-typescript-2019-version\/\",\"name\":\"\u3010\u7c21\u5358\u3011React Native\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306bTypeScript\u3092\u5c0e\u5165\u3059\u308b\u306b\u306f\uff1f\u3010\u30a2\u30d7\u30ea\u958b\u767a\u306b\uff01\u3011 - DEHA Magazine\",\"isPartOf\":{\"@id\":\"https:\/\/deha.co.jp\/magazine\/#website\"},\"datePublished\":\"2019-12-16T12:20:35+00:00\",\"dateModified\":\"2021-07-24T10:11:31+00:00\",\"description\":\"\u30d9\u30c8\u30ca\u30e0\u6280\u8853\u8005\u96c6\u56e3DEHA\u304c\u304a\u5c4a\u3051\u3059\u308b\u30aa\u30d5\u30b7\u30e7\u30a2\u958b\u767a\u60c5\u5831\u30e1\u30c7\u30a3\u30a2\",\"breadcrumb\":{\"@id\":\"https:\/\/deha.co.jp\/magazine\/react-native-typescript-2019-version\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/deha.co.jp\/magazine\/react-native-typescript-2019-version\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/deha.co.jp\/magazine\/react-native-typescript-2019-version\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/deha.co.jp\/magazine\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010\u7c21\u5358\u3011React Native\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306bTypeScript\u3092\u5c0e\u5165\u3059\u308b\u306b\u306f\uff1f\u3010\u30a2\u30d7\u30ea\u958b\u767a\u306b\uff01\u3011\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/deha.co.jp\/magazine\/#website\",\"url\":\"https:\/\/deha.co.jp\/magazine\/\",\"name\":\"DEHA Magazine\",\"description\":\"DEHA\u304c\u304a\u5c4a\u3051\u3059\u308b\u30aa\u30d5\u30b7\u30e7\u30a2\u958b\u767a\u60c5\u5831\u30e1\u30c7\u30a3\u30a2\",\"publisher\":{\"@id\":\"https:\/\/deha.co.jp\/magazine\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/deha.co.jp\/magazine\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/deha.co.jp\/magazine\/#organization\",\"name\":\"Deha Magazine\",\"url\":\"https:\/\/deha.co.jp\/magazine\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/deha.co.jp\/magazine\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/deha.co.jp\/magazine\/wp-content\/uploads\/2025\/06\/DEHA-Solutions-Site-icon.png\",\"contentUrl\":\"https:\/\/deha.co.jp\/magazine\/wp-content\/uploads\/2025\/06\/DEHA-Solutions-Site-icon.png\",\"width\":780,\"height\":780,\"caption\":\"Deha Magazine\"},\"image\":{\"@id\":\"https:\/\/deha.co.jp\/magazine\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/deha.co.jp\/magazine\/#\/schema\/person\/301963170c966f39bbe2f7914450e1f9\",\"name\":\"Mai Tran\",\"sameAs\":[\"https:\/\/deha.co.jp\"],\"url\":\"https:\/\/deha.co.jp\/magazine\/author\/maitt\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u3010\u7c21\u5358\u3011React Native\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306bTypeScript\u3092\u5c0e\u5165\u3059\u308b\u306b\u306f\uff1f\u3010\u30a2\u30d7\u30ea\u958b\u767a\u306b\uff01\u3011 - DEHA Magazine","description":"\u30d9\u30c8\u30ca\u30e0\u6280\u8853\u8005\u96c6\u56e3DEHA\u304c\u304a\u5c4a\u3051\u3059\u308b\u30aa\u30d5\u30b7\u30e7\u30a2\u958b\u767a\u60c5\u5831\u30e1\u30c7\u30a3\u30a2","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:\/\/deha.co.jp\/magazine\/react-native-typescript-2019-version\/","og_locale":"en_US","og_type":"article","og_title":"\u3010\u7c21\u5358\u3011React Native\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306bTypeScript\u3092\u5c0e\u5165\u3059\u308b\u306b\u306f\uff1f\u3010\u30a2\u30d7\u30ea\u958b\u767a\u306b\uff01\u3011 - DEHA Magazine","og_description":"\u30d9\u30c8\u30ca\u30e0\u6280\u8853\u8005\u96c6\u56e3DEHA\u304c\u304a\u5c4a\u3051\u3059\u308b\u30aa\u30d5\u30b7\u30e7\u30a2\u958b\u767a\u60c5\u5831\u30e1\u30c7\u30a3\u30a2","og_url":"https:\/\/deha.co.jp\/magazine\/react-native-typescript-2019-version\/","og_site_name":"DEHA Magazine","article_published_time":"2019-12-16T12:20:35+00:00","article_modified_time":"2021-07-24T10:11:31+00:00","og_image":[{"width":350,"height":427,"url":"https:\/\/deha.co.jp\/magazine\/wp-content\/uploads\/2019\/12\/react-native-typescript.jpg","type":"image\/jpeg"}],"author":"Mai Tran","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Mai Tran","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/deha.co.jp\/magazine\/react-native-typescript-2019-version\/#article","isPartOf":{"@id":"https:\/\/deha.co.jp\/magazine\/react-native-typescript-2019-version\/"},"author":{"name":"Mai Tran","@id":"https:\/\/deha.co.jp\/magazine\/#\/schema\/person\/301963170c966f39bbe2f7914450e1f9"},"headline":"\u3010\u7c21\u5358\u3011React Native\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306bTypeScript\u3092\u5c0e\u5165\u3059\u308b\u306b\u306f\uff1f\u3010\u30a2\u30d7\u30ea\u958b\u767a\u306b\uff01\u3011","datePublished":"2019-12-16T12:20:35+00:00","dateModified":"2021-07-24T10:11:31+00:00","mainEntityOfPage":{"@id":"https:\/\/deha.co.jp\/magazine\/react-native-typescript-2019-version\/"},"wordCount":105,"publisher":{"@id":"https:\/\/deha.co.jp\/magazine\/#organization"},"articleSection":["React Native","\u30b7\u30b9\u30c6\u30e0\u958b\u767a"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/deha.co.jp\/magazine\/react-native-typescript-2019-version\/","url":"https:\/\/deha.co.jp\/magazine\/react-native-typescript-2019-version\/","name":"\u3010\u7c21\u5358\u3011React Native\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306bTypeScript\u3092\u5c0e\u5165\u3059\u308b\u306b\u306f\uff1f\u3010\u30a2\u30d7\u30ea\u958b\u767a\u306b\uff01\u3011 - DEHA Magazine","isPartOf":{"@id":"https:\/\/deha.co.jp\/magazine\/#website"},"datePublished":"2019-12-16T12:20:35+00:00","dateModified":"2021-07-24T10:11:31+00:00","description":"\u30d9\u30c8\u30ca\u30e0\u6280\u8853\u8005\u96c6\u56e3DEHA\u304c\u304a\u5c4a\u3051\u3059\u308b\u30aa\u30d5\u30b7\u30e7\u30a2\u958b\u767a\u60c5\u5831\u30e1\u30c7\u30a3\u30a2","breadcrumb":{"@id":"https:\/\/deha.co.jp\/magazine\/react-native-typescript-2019-version\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/deha.co.jp\/magazine\/react-native-typescript-2019-version\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/deha.co.jp\/magazine\/react-native-typescript-2019-version\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/deha.co.jp\/magazine\/"},{"@type":"ListItem","position":2,"name":"\u3010\u7c21\u5358\u3011React Native\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306bTypeScript\u3092\u5c0e\u5165\u3059\u308b\u306b\u306f\uff1f\u3010\u30a2\u30d7\u30ea\u958b\u767a\u306b\uff01\u3011"}]},{"@type":"WebSite","@id":"https:\/\/deha.co.jp\/magazine\/#website","url":"https:\/\/deha.co.jp\/magazine\/","name":"DEHA Magazine","description":"DEHA\u304c\u304a\u5c4a\u3051\u3059\u308b\u30aa\u30d5\u30b7\u30e7\u30a2\u958b\u767a\u60c5\u5831\u30e1\u30c7\u30a3\u30a2","publisher":{"@id":"https:\/\/deha.co.jp\/magazine\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/deha.co.jp\/magazine\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/deha.co.jp\/magazine\/#organization","name":"Deha Magazine","url":"https:\/\/deha.co.jp\/magazine\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/deha.co.jp\/magazine\/#\/schema\/logo\/image\/","url":"https:\/\/deha.co.jp\/magazine\/wp-content\/uploads\/2025\/06\/DEHA-Solutions-Site-icon.png","contentUrl":"https:\/\/deha.co.jp\/magazine\/wp-content\/uploads\/2025\/06\/DEHA-Solutions-Site-icon.png","width":780,"height":780,"caption":"Deha Magazine"},"image":{"@id":"https:\/\/deha.co.jp\/magazine\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/deha.co.jp\/magazine\/#\/schema\/person\/301963170c966f39bbe2f7914450e1f9","name":"Mai Tran","sameAs":["https:\/\/deha.co.jp"],"url":"https:\/\/deha.co.jp\/magazine\/author\/maitt\/"}]}},"_links":{"self":[{"href":"https:\/\/deha.co.jp\/magazine\/wp-json\/wp\/v2\/posts\/2511"}],"collection":[{"href":"https:\/\/deha.co.jp\/magazine\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/deha.co.jp\/magazine\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/deha.co.jp\/magazine\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/deha.co.jp\/magazine\/wp-json\/wp\/v2\/comments?post=2511"}],"version-history":[{"count":25,"href":"https:\/\/deha.co.jp\/magazine\/wp-json\/wp\/v2\/posts\/2511\/revisions"}],"predecessor-version":[{"id":6141,"href":"https:\/\/deha.co.jp\/magazine\/wp-json\/wp\/v2\/posts\/2511\/revisions\/6141"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/deha.co.jp\/magazine\/wp-json\/wp\/v2\/media\/2519"}],"wp:attachment":[{"href":"https:\/\/deha.co.jp\/magazine\/wp-json\/wp\/v2\/media?parent=2511"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/deha.co.jp\/magazine\/wp-json\/wp\/v2\/categories?post=2511"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/deha.co.jp\/magazine\/wp-json\/wp\/v2\/tags?post=2511"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}