React Native : Get back Android and iOS native platform


        I've very very confuse!! since started develop React Native and it's needed to install Expo for remote view result on smartphone it's not pretty cool like native feeling, I've looking for Android and iOS platform inside project folder but nothing...

        After searching about it, no one give me clear information or simple information step by step to produce native but i'll do it as a simple without deep learning.  If you don't install React Native try this link until finished `npm start` then as your Terminal stay in project folder type `react-native -v` and enter and here the result is...


react-native-cli: 2.0.1
react-native: 0.52.0

Then i'm print out all file in project folder is...


See, no `Android` and `iOS` project, so how we get start native from this point?, no one clear answer. I'll give you some simple information about this.

1. After create React Native project, it's automatically attach Expo, so no Android and iOS appear because of it's wrapping with Expo NOT pure React Native right now, if you want to learn more about it click this link. You can test project directly on your device but that was not i needed.

2. Under your project folder we must detach Expo before journey into the React Native full adventure. Let's type this on Terminal `npm run eject` and enter...


Here, well well, i found it `React Native: I'd like a regular React Native project.` option.

3. Hit enter from above option BUT if you don't make your life troubling in Native DON'T DO THIS.
Who want to join my side let's enter...


The second question `What should your app appear as on a user's home screen?` appear, they don't let me out easier, f**ck. Ok, calm down. I just typing my project name and hit enter...


F**ck U React Native, how you gonna trying to annoying anyone with many question like this, it's very simple to added Hello World as default. The third question come `? What should your Android Studio and Xcode projects be called? (NabiGet)`, i just typing project name again and hit enter... wait for a while... then...


Hooray!!, i can removed Expo and get back to Android and iOS React Native developer, let's check by typing `ls -l` and hit enter...


Done!! with retrieved `android` `ios` and `index.js`, hope anyone who get stuck like me can get start React Native without Expo easier. Anyway this post doesn't mean Expo worse than React Native, they had difference way to handle job base on difference major skill of developer, just picking your best method to done proper job.

See you next post. ;)

Comments