Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16750

How to change iOS/Android project folders in React Native

$
0
0

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?


Viewing all articles
Browse latest Browse all 16750

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>