MBP(はてな)

MacBook Pro,iPhone Xs,React

React Native

f:id:fedora9:20210728133109p:plain

ReactNativeの開発環境を構築する

$ react-native run-ios して、Simulator に表示されるまで時間がかかるので、待つ。

$ vi App.js して、
Step One をHello Step One に変更して、保存すると、画面がリロードされる。

実機で動かす場合は、
reactNative/ios/reactNative.xcworkspace をダブルクリックして、
reactNative の Signing & Capabilities を開き、
Teamを選択、Bundle Identifierが一意になるように123を追加、
(Generalを開き、iOS 14.4に変更)
iPhone 12を選択して実行でSimulatorに表示された。

React Native + Expoでアプリを作ってApp StoreとGoogle Playで公開した

React-Native を実機で動かす - Qiita


reactNative.xcworkspaceを開く

xcode 11.4 build fatal error: module map file xxx/Build/Products/Debug-iphoneos/YogaKit/YogaKit.modulemap' not found · Issue #28503 · facebook/react-native · GitHub