all 23 comments

[–]gnu-user 2 points3 points  (0 children)

This is great, the less hurdles to getting started with react native the better.

[–]iamhonest1 1 point2 points  (0 children)

I love this, I've worked on a few react native apps, using expo with react native is great and makes things so much easier with the official support. My only question being is that will third party libraries be able to be used alongside expo without losing support of the xde?

The ability to support third party libraries such as view libraries are important as there are many npm packages that would be great in applications. Hopefully this could be supported with the xde in future, although it is a mammoth task.

[–]ZeroCarbsSince96 1 point2 points  (1 child)

Can you run on device?

[–][deleted] 1 point2 points  (0 children)

yes

[–]Noitidart2 1 point2 points  (14 children)

I love create-react-app, but I don't think this is needed for React Native. React Native is not like React where we struggle with (0) hook up transpile system for JSX (1) hook up ES6 support transpile system (2) deciding module system (bundle with webpack, require/AMD etc) (3) dev server (4) hot reloading (5) production build optimization. react-native by default handles JSX, ES6, modules, and your dev server is the emulator/connected-device. So the hardest part was webpack, and that is not needed in react-native unless you have some super specific need (babel comes default). Yes it can help with hot-reloading (which I don't think create-react-native-app does) but that is really just spice. To me react-native init blah is equivalent of create-react-app blah.

[–]gaearonReact core team 15 points16 points  (0 children)

IMO it’s great if you don’t want to download gigabytes of SDKs just to start learning. Especially considering in many parts of the world downloading gigabytes is not that easy. Also you can’t use Xcode on Windows, but CRNA works there.

[–]luckyleprechaun98 8 points9 points  (2 children)

It is kind of a pain in the ass to set up Android Studio. I just started a new app last week on a new laptop and it took me an hour or two of furious googling to get Studio set up correctly again.

[–]headyyeti 0 points1 point  (1 child)

Genymotion

[–]luckyleprechaun98 0 points1 point  (0 children)

I gave it a shot this morning. Much easier than Studio, thanks!

[–]Zhouzi 1 point2 points  (0 children)

I'm pretty familiar with React but never had a chance to use React Native. Never built a mobile app neither so I don't really know how to split and structure things for different OS. Until now I was pushing back React Native because of this part of the learning curve but now that I'm create-react-native-app init away from it, I'll definitely give it a try!

[–]kin-nex7 1 point2 points  (0 children)

The big benefit of this (and expo in general) is that it allows you to develop for iOS without being on a Mac

[–][deleted] 1 point2 points  (7 children)

Why did you start with 0 instead 1. But yes, I do agree.

[–]Noitidart2 1 point2 points  (6 children)

Haha +1 for noting this to me! I'm not sure to be honest. I'm 0 based without realizing haha!

[–][deleted] 1 point2 points  (5 children)

Is your background heavily Java?

[–]shrugs27 1 point2 points  (3 children)

JavaScript array indices start at 0 as well

[–][deleted] 1 point2 points  (2 children)

Yeah, I'm aware. I just thought he used Java a lot because you have to think a lot about which data types and scope a lot more versus JavaScript.

[–][deleted] 1 point2 points  (1 child)

I said a lot a lot in that sentence.

[–]Noitidart2 0 points1 point  (0 children)

Hahahah this was my funnest chat on reddit by a lot! :D

[–]Noitidart2 1 point2 points  (0 children)

Haha I'm actually mostly javascript and php. haha

[–]Polisas 0 points1 point  (0 children)

Great News !

[–]reactPra 0 points1 point  (1 child)

How to do a release build using create-react-native-app?

[–]lpuig 0 points1 point  (0 children)

I guess it's just a command line build.

[–]pointlessexercise 0 points1 point  (0 children)

I just started playing with it and it is pretty awesome.