Membuat Instagram ala ReactNative dengan Apollo & Graphcool.

Persiapan:

Dyo Medio
Dyo Medio
Aug 24, 2017 · 1 min read

Install NodeJS

Install React Native dengan CRNA.

npm install -g create-react-native-app

Create a new React Native project

create-react-native-app InstaReactNative 
cd InstaReactNative
npm start

Jalankan simulasi Android yang anda punya (Genymotion atau Android Studio).

Lihat pada file App.js, pada React Native CRNA, file App.js adalah sebagai root file atau root component. Bila kita edit file sebagai berikut:

Pada simulator akan tampak seperti ini:

Gambar 1 — Tampilan pada emulator Android

Membuat folder Struktur app:

Kita membuat struktur folder baru untuk memudahkan kita mengorganisasi file.

Create folder src

Create folder baru src/components

Create file baru src/components/LoginForm.js

Membuat Navigasi dengan react-native-router-flux

Install router flux:

npm install --save react-native-router-flux

continue soon …

)
    Dyo Medio

    Written by

    Dyo Medio

    Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
    Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
    Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade