Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 25.2k
feat: Do not require pod install after react-native init#24638
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
4f7134afa10a494d5cf81c121363a440d0c8b0289f83d0ba7File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| #!/bin/bash | ||
| # Copyright (c) Facebook, Inc. and its affiliates. | ||
| # | ||
| # This source code is licensed under the MIT license found in the | ||
| # LICENSE file in the root directory of this source tree. | ||
| PACKAGE_LOCATION=$(pwd)/react-native-$1.tgz | ||
| # Pack React Native into a `.tgz` file so we can run from source | ||
| npm pack | ||
| # Set the React Native version to point to the `.tgz` file | ||
| node scripts/set-rn-template-version.js "file:$PACKAGE_LOCATION" | ||
| # We need to generate CocoaPods project. To do so, we install depdendencies | ||
| # locally and manually run `pod install` | ||
| cd template | ||
| npm install | ||
grabbou marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| (cd ios && pod install) | ||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we'll want to pass ContributorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm... mind elaborating a bit what that flag is doing? We have local pods (from local spec within the repo, so no need to update the whole CocoaPods repo) and we also rm -rf Pods anyway. Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. forgot it's local, you're right | ||
| # Dependencies are installed on the client-side | ||
| rm -rf node_modules | ||
| # Do not ship a package.json that points to a `tgz` | ||
| git checkout package.json | ||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.