I am new to React Native and I want to move android
and ios
folders to a folder that I've created named platforms
. I've moved the folders and ran:
react-native run-ios --project-path ./platforms/ios
Got an error about the ../node_modules/react-native/scripts/react-native-xcode.sh
script, changed it to ../../node_modules/react-native/scripts/react-native-xcode.sh
as I've moved the folder one directory in.
It starts building (it finds the xcodeproj
) and fails with:
/Users/Can/Documents/Programming/React Native/MyApp/platforms/ios/MyApp/AppDelegate.h:8:9: fatal error: 'React/RCTBridgeDelegate.h' file not found
info #import <React/RCTBridgeDelegate.h>
(since my focus is on iOS, I haven't checked Android)
How can I properly move the ios
and android
folders to my custom folder and build React Native app properly?