You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(I asked this on StackOverflow but nobody answered so I decided to report that here)
Description
According to the react-native CLI documentation we can specify custom configuration based on each platform for RN CLI. I want to change the default location of each platform folders so I added my custom react-native.config.js to the root of the project which you can find that in the code example below.
If I run react-native config in the root folder, I can see the correct configuration:
The problem is whenever I run react-native run-ios I get this error:
error iOS project folder not found. Are you sure this is a React Native project?. Run CLI with --verbose flag for more details.
NOTE: I installed all the dependencies properly. Here is the result of the react-native --v command:
react-native-cli: 2.0.1react-native: 0.62.0
React Native version:
System:
OS: macOS 10.15.1
CPU: (4) x64 Intel(R) Core(TM) i5-4278U CPU @ 2.60GHz
Memory: 20.93 MB / 8.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 12.7.0 - /Volumes/JETDRIVE/.nvm/versions/node/v12.7.0/bin/node
Yarn: 1.19.0 - /usr/local/bin/yarn
npm: 6.10.0 - /Volumes/JETDRIVE/.nvm/versions/node/v12.7.0/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.8.4 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1
Android SDK:
API Levels: 23, 28, 29
Build Tools: 23.0.1, 28.0.3, 29.0.1
System Images: android-29 | Google Play Intel x86 Atom
Android NDK: Not Found
IDEs:
Android Studio: 3.5 AI-191.8026.42.35.5900203
Xcode: 11.3/11C29 - /usr/bin/xcodebuild
Languages:
Python: 2.7.16 - /usr/bin/python
npmPackages:
@react-native-community/cli: Not Found
react: 16.11.0 => 16.11.0
react-native: 0.62.0 => 0.62.0
npmGlobalPackages:
*react-native*: Not Found
Steps To Reproduce
Create a RN project via react-native init
Create a subfolder in the project and move ios and android folders there
Create a react-native.config.js in the root directory and export project configuration as I provided in this issue(You can find in the code example section).
Try to run the project via react-native run-ios or react-native run-android
Expected Results
I should be able to run the project without any issues.
Snack, code example, screenshot, or link to a repository:
(I asked this on StackOverflow but nobody answered so I decided to report that here)
Description
According to the react-native CLI documentation we can specify custom configuration based on each platform for RN CLI. I want to change the default location of each platform folders so I added my custom
react-native.config.js
to the root of the project which you can find that in the code example below.If I run react-native config in the root folder, I can see the correct configuration:
The problem is whenever I run react-native run-ios I get this error:
NOTE: I installed all the dependencies properly. Here is the result of the react-native --v command:
React Native version:
Steps To Reproduce
react-native init
ios
andandroid
folders therereact-native.config.js
in the root directory and export project configuration as I provided in this issue(You can find in the code example section).react-native run-ios
orreact-native run-android
Expected Results
I should be able to run the project without any issues.
Snack, code example, screenshot, or link to a repository:
Here is my
react-native.config.js
:The text was updated successfully, but these errors were encountered: