-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Difference between react-native-init and create-react-native-app #516
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
Comments
According to React-native official documents
|
But using create-react-native-app doesn't allow you to import native modules written in Java and Objetive-C, right?! |
Can someone comment on @Benzer1406 question? I am curious to know also. |
@Benzer1406 assuming you mean This means:
I would highly recommend using CRNA or Edit: |
I have this problem after ejecting from expo and then trying to build an apk. "Couldn't find index.js" and there is no index.js in the project. The project works well in expo and was created using expo but now I can't make a native build with it because it assumes index.js
|
@EvanBacon Thanks for your list. React Native init: Advantages:
Disadvantages:
Expo Advantages:
Disadvantages:
@EvanBacon Feel free to correct the list if something is not accurate or to add more points |
@benzer thanks for a more detailed list. I forgot to mention that expo has this anti-pitch which explains why you might not be interested. https://t.co/yfqFLKS10V I should also mention that all the gl stuff is far more advanced in expo, things like phaser.js, and pixi.js only work in expo at the moment. |
@EvanBacon having studied a lot now there are still three questions left:
I posted them on StackOverflow: https://stackoverflow.com/questions/49328412/difference-between-expokit-and-react-native-project |
Sorry to jump in, I also want to understand that how do you create those 2 directories namely android/ and ios/ when used Out of the 2 methods |
When you go for taking apk build you need Android inside project structure, that can be easily added in |
Since this discussion shows up on google: Disclamer: @EvanBacon works for expo |
I understand this conversation has been answered and closed, but would someone care to explain the reason why CRNA doesn't work with Native modules? On a deeper level I am trying to understand what is the difference between a React Native module vs a Native module and what's it about a native module that makes it incompatible with CRNA? Thanks |
@nitinsh99 I'm by no means an expert, but it appears that Expo relies on your app being pure JavaScript. This limitation may exist to support hot reloading in the Expo app. |
thanks @Benzer1406 .i got cleared , i will not use expo , i will eject , don't want suprises |
Can i run application without android studio in |
without android studio you can run react-native https://facebook.github.io/react-native/docs/getting-started.html |
@pawarvijay I have already checked this documentation. There are providing two type of methods.
|
in link https://facebook.github.io/react-native/docs/getting-started.html |
@Bhavin9898 The only reason I don't prefer using Expo, is because I don't want a simple app to weigh 30M. I'm using Just plug-in your device via USB, run |
if you don't select any templates, create-react-native-app will create a bare react-native project that lets you use expo modules in it, your app size will be the same as if you initialized with react-native-cli and installed a couple libraries like react-native-gesture-handler and reanimated this basically saves you the trouble of doing this: https://docs.expo.io/bare/installing-unimodules/ and you can install any of the apis listed here https://docs.expo.io/versions/latest/ if you select a template, you can choose from one of these examples: http://github.com/expo/examples - this will created a managed expo app, but you can just run i hope that clarifies things for people in this thread! locking |
I want to know the Difference between react-native-init and create-react-native-app, I'm new to react native so kindly explain your answer.
I've used both command to create new project, with react-native-init I get a project with iOS & android project folder & with create-react-native-app I get a new project that doesn't has those folders, and running "npm start" project created by react-native-init command doesn't display QR code, why is that, and how can I solve this ?
One more thing what steps should I follow to create android & ios folders in project created by create-react-native-app.
I've read Post-1, Post-2 and Post-3 already.
Apologies If I miss any guidelines in posting the issue, and I know Its not an issue it's just my lack of my knowledge about react-native.
The text was updated successfully, but these errors were encountered: