Skip to content
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

Use latest React Native CLI #24517

Closed
wants to merge 9 commits into from
Closed

Use latest React Native CLI #24517

wants to merge 9 commits into from

Conversation

grabbou
Copy link
Contributor

@grabbou grabbou commented Apr 18, 2019

Summary

Updates React Native to use latest CLI.

Changes:

  • No more --reactNativePath, define it once in the configuration file. This reverts the previous PR that added this flag
  • Add platforms and commands - React Native now defines platform like any other package. There's no longer concept of "out-of-tree" platform. All are treated equally. If React Native works, any other platform will work too.
  • Updates jest/hasteImpl.js to use public CLI interface (loadConfig) instead of findPlugins and removes a weird conditional that checks for CI presence.

Changelog

[INTERNAL] - Update React Native CLI

Test Plan

Run RNTester and it works

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 18, 2019
I feel like `commands` at the beginning just reads nicer.
Copy link
Contributor

@thymikee thymikee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is so much better!

react-native.config.js Outdated Show resolved Hide resolved
@grabbou
Copy link
Contributor Author

grabbou commented Apr 22, 2019

Let's merge it so it unblocks #24506

package.json Outdated Show resolved Hide resolved
Copy link
Contributor

@cpojer cpojer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cpojer is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@grabbou
Copy link
Contributor Author

grabbou commented Apr 23, 2019 via email

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cpojer has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @grabbou in 706f67a.

When will my fix make it into a release? | Upcoming Releases

@react-native-bot react-native-bot added the Merged This PR has been merged. label Apr 24, 2019
facebook-github-bot pushed a commit that referenced this pull request Apr 24, 2019
Summary:
Replaces #24099 (original PR became detached for some reason)

Implements the template changes required to enable native modules auto-linking for both Android & iOS.

Requires the following to be merged first and an updated CLI to be published:

- [x] react-native-community/cli#254
- [x] react-native-community/cli#256
- [x] react-native-community/cli#258

cc grabbou thymikee orta for review

- [ ] #24517 update CLI version)

[TEMPLATE] [FEATURE] - Enable auto-initialization/linking of react native modules for new projects
Pull Request resolved: #24506

Differential Revision: D15062701

Pulled By: cpojer

fbshipit-source-id: 65296cbec2925405fe8033de71910325e0c719bc
kelset pushed a commit that referenced this pull request Jun 19, 2019
Summary:
Replaces #24099 (original PR became detached for some reason)

Implements the template changes required to enable native modules auto-linking for both Android & iOS.

Requires the following to be merged first and an updated CLI to be published:

- [x] react-native-community/cli#254
- [x] react-native-community/cli#256
- [x] react-native-community/cli#258

cc grabbou thymikee orta for review

- [ ] #24517 update CLI version)

[TEMPLATE] [FEATURE] - Enable auto-initialization/linking of react native modules for new projects
Pull Request resolved: #24506

Differential Revision: D15062701

Pulled By: cpojer

fbshipit-source-id: 65296cbec2925405fe8033de71910325e0c719bc

# Conflicts:
#	template/ios/Podfile
@AkashBabu
Copy link

We are maintaining react-native project within android (the classical way) and we were soo much dependent on --reactNativePath for our build process. Now after migrating from 0.59 -> 0.61.5 we are not finding a way to provide --reactNativePath.
So can you please suggest us an alternative ?

Thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants