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
{{ message }}
Repository navigation
run-android fails in custom project structure #956
If I run, "npx react-native run-droid" inside reactNative folder, it fails with,
error Android project not found. Are you sure this is a React Native project?
This is because, cli checks for android/gradlew inside root folder which is not there in my project structure. It is in appName/gradlew. How can I change this gradlew path in cli command?
@thymikee I thought run-android doesn't use config yet. I saw your PR #791 fixes this issue. Not sure if I'm missing something. Could you point me to a sample react-native.config.js file for custom project structure? Thanks!
Aside from that, yeah, this is a duplicate of #791 that @thymikee was/is working on. I am working on cleaning up the next branch and we will resume work no that.
Activity
thymikee commentedon Feb 12, 2020
You can either create a
react-native.config.jsfile in the project root, or run the command from the project root, or both.BharathMG-ShareChat commentedon Feb 12, 2020
@thymikee I thought run-android doesn't use config yet. I saw your PR #791 fixes this issue. Not sure if I'm missing something. Could you point me to a sample
react-native.config.jsfile for custom project structure? Thanks!thymikee commentedon Feb 12, 2020
Having
react-native.config.jsin a directory is a trick to tell the CLI that "here's the root of the project, let's look up from there".Sample config:
grabbou commentedon Feb 17, 2020
Aside from that, yeah, this is a duplicate of #791 that @thymikee was/is working on. I am working on cleaning up the
nextbranch and we will resume work no that.