-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to modify existing RN project to use single index.js entry point (both iOS and Android) #16517
Comments
I have the same problem |
I had the same problem, which was fixed by deleting the |
Unfortunately @duailibe, the issue persists even after deleting |
I'm pretty sure this could've been done prior to the defaulting to only 1 For Android, go to your
In
For iOS, go to your
Depending on how old your project is, you might have a Build Phases Script that looks like this:
In that case, you can remove the argument These changes were tested with a new RN 47.2 project that I upgraded to RN 49.3 with a single Hope that helps! edit1: left out another android fix |
@achuvm This helped when I run app through |
Hi @AishwaryaSurana, That's interesting, maybe take a look at my updated answer for iOS, there's possibly another thing you have to change to run from Xcode. Although I was under the impression |
Thanks @achuvm, your edited comment worked great for me! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. If you think this issue should definitely remain open, please let us know why. Thank you for your contributions. |
Is this a bug report?
Yes
Have you read the Contributing Guidelines?
Yes
Environment
Environment:
OS: macOS High Sierra 10.13
Node: 8.6.0
Yarn: 1.2.0
npm: 5.5.1
Watchman: 4.9.0
Xcode: Xcode 9.0.1 Build version 9A1004
Android Studio: 2.3 AI-162.4069837
Packages: (wanted => installed)
react: 16.0.0-beta.5 => 16.0.0-beta.5
react-native: 0.49.3 => 0.49.3
Steps to Reproduce
(Write your steps here:)
jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/index.bundle?platform=ios&dev=true"];
in AppDelegate.mExpected Behavior
My expectation was that RN 0.49.* would know to use index.js as the entry point, but the packager and output suggested that it was still trying to use the old entry points (i.e. index.android.js).
Actual Behavior
The packager showed this output, suggesting that it was using old entry points:
Screenshots (Android and iOS, respectively):
The text was updated successfully, but these errors were encountered: