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

United init command for both React and React Native #120

Closed
missingtrailingcomma opened this issue Jul 23, 2016 · 4 comments
Closed

United init command for both React and React Native #120

missingtrailingcomma opened this issue Jul 23, 2016 · 4 comments

Comments

@missingtrailingcomma
Copy link

missingtrailingcomma commented Jul 23, 2016

I myself is used to the command react-native init AwesomeProject for creating React Native projects, and now create-react-app brings up a new command create-react-app my-app for creating React DOM projects. I wonder what's the reasons for the two different command, and I see the differences as follows:

  1. CLI tool name: create-react-app v.s. react-native-cli
  2. command it self: one including init and one not
  3. dev process: create-react-app uses npm scripts while react-native uses custom ones like react-native run-ios

Is it possible in the future to unite these two CLI tools and create a united one for all React related init process, which can be used for rendering to ios, Android, DOM, and can be customize by developer, who, for example, wants one for creating React apps that render to SVG?

@lacker
Copy link
Contributor

lacker commented Jul 23, 2016

I love this idea and I feel like it is possible. It's unclear to me what the right next step is. I think for it to be valuable to share CLI tools between React and React Native, it has to work to share application code. Some bridging layer like https://github.com/necolas/react-native-web could work but AFAIK nobody has used that to build an entire app yet. I think that needs to happen before best practices can develop here.

@mxstbr
Copy link
Contributor

mxstbr commented Jul 23, 2016

It'd be awesome to have a combined CLI! @vjeux @mkonicek probably have some input here?

@mxstbr mxstbr changed the title United the init command for both React and React Native United init command for both React and React Native Jul 23, 2016
@gaearon
Copy link
Contributor

gaearon commented Jul 23, 2016

Agree with what @lacker said.

This will probably make sense if we integrate something like React Native Web. Even in that case there are many questions (why are there two tools but not one? why do they have such different build pipelines? if I want to reuse app level code which one should I use to create the project? etc)

So I think it’s nice to keep this in mind, but it’s not something on our plates for the next several months at least.

@gaearon
Copy link
Contributor

gaearon commented Jul 25, 2016

I’ll close because this is not actionable for us right now.
We might revisit it some time in the future.

@gaearon gaearon closed this as completed Jul 25, 2016
@lock lock bot locked and limited conversation to collaborators Jan 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants