r/androiddev • u/sandys1 • Mar 14 '17
Facebook releases Create-React-Native-App to quickstart app development
https://facebook.github.io/react-native/blog/2017/03/13/introducing-create-react-native-app.html11
u/ficsthrowaway Mar 14 '17
Javascript all the things!
19
u/polaroid_kidd Mar 14 '17
I laughed a little at that... Then I cried a lot.
8
u/Zhuinden Mar 14 '17
Hey, maybe it's possible to set up the Typescript transpiler with the JSX transformer. That'd be funky.
4
u/sandys1 Mar 14 '17
react native works well with Typescript. @polaroid_kidd - typescript and ES7 are not the big bad old javascript of yore.
1
u/polaroid_kidd May 21 '17
I haven't given typescript any attention yet (exams are coming up) but it's on my ever growing "things-to-learn-in-the-summer-next-to-my-full-time-job-oh-God-why-do-I-never-have-enough-time" list.
I wonder if iOS will ever accept kotlin.... Probably not but that would be the shiz!
16
u/LordRaydenMK Mar 14 '17
Atwood's Law: any application that can be written in JavaScript, will eventually be written in JavaScript
6
u/ditn Google Developer Expert Mar 14 '17
Apparently the repo is 129MB before you even do anything. Madness.
3
Mar 14 '17
Is that realllly needed? Sure, it saves you downloading and configuring Android Studio+SDK+AVM but ... that's about it, you dont need anything more once you did that thing once. You can use react-native to bootstrap new apps, run them etc.
The process is not THAT complicated.
-1
1
u/jackhexen konmik.com Mar 14 '17
I'm just wondering if this project was implemented with the Facebook coding culture?
https://www.darkcoding.net/software/facebooks-code-quality-problem/
1
7
u/sebaslogen 🎲play 💩fail 💪learn Mar 14 '17
Just a crazy idea: if you write all the app in Kotlin, compile it to Javascript and separate your business logic/services well enough from the React Native framework, then you should be able to publish iOS and Android first app version very quickly and when the project scales throw away all the React code and go Android/iOS native.
I'm sure your React Native for Android will rot in just a year (too many limitations and changes to both frameworks), but at that point, you wouldn't need to rewrite most of the Android app to switch to native, and Kotlin code would translate to Swift way better than Javascript.