Touchable Highlight
• Komponen untuk merespon sentuhan dari user
• Komponen ini hanya diperbolehkan memiliki satu komponen
child
• Komponen <TouchableHighlight></TouchableHighlight>
Animations
• Animations diperlukan untuk
menciptakan user experience yang
menarik
• Animated API dirancang untuk secara
ringkas mengekspresikan berbagai
macam animasi dan pola interaksi
• Animated menyediakan 6 jenis komponen
animasi yaitu : View, Text, Image,
ScrollView, FlatList, dan SectionList
• import {Animated} from ‘react-native’
Progress Bar
• Komponen yang digunakan untuk
menampilkan indikator progress
• React Native hanya menyediakan
komponen progress bar khusus
Android
• Untuk iOS disarankan menggunakan
komponen progress bar dari package
community (third party)
• Komponen : <ProgressBarAndroid />
Modal
• Cara dasar untuk menampilkan
konten diatas konten lain
• Komponen Modal disediakan oleh
react-native library
• Atribut visible (boolean)
digunakan untuk menampilkan
atau menutup modal
Question & Answers
Networking
Nodejs
• Platform server-side dan aplikasi jaringan
• Ditulis dengan bahasa Javascript
• Berjalan di multi-platform (Windows, Mac OSX, dan
Linux)
• Single-threaded, non-blocking, asynchronously
programming
File Request PHP/ASP vs Nodejs
PHP/ASP Nodejs
Sends the task to the computer’s file system Sends the task to the computer’s file sytem
Waits while the file system opens and reads Ready to handle the next request
the file
Return the content to the client When the file system has opened and read
the file, the server returns the content to the
client
Ready to handle the next request
Modul HTTP
• Built-in module dari Nodejs
• Membuat server HTTP yang mendengarkan port server
dan memberikan respon kembali ke client
Nodejs Packages
• NPM adalah package manager untuk Nodejs packages,
atau Nodejs modules
• Package di Nodejs berisi semua file yang dibutuhkan
untuk sebuah module
• Module adalah library Javascript yang dapat dimasukkan
dalam file project
Nodejs Packages
• Download package
• Using package
Express
• Framework aplikasi web untuk Nodejs
• Dirancang untuk membangung aplikasi web dan web API
• Framework standard untuk Nodejs
• Menyediakan router url untuk menangani request dari
client
Request Express
• Penanganan request dari client
• Client men-request ke sever melalui router url yang
dibuat dengan Express
• Method request : get, post, delete, put, & options
Response Express
• Mengembalikan response ke client
• Response bisa berupa text, JSON, download, header, dan
status response
JavaScript Object Notation (JSON)
• Sintaks untuk storing dan data exchange
• JSON merupakan text yang ditulis dengan notasi object
Javascript
• JSON text dapat dikonversi menjadi object Javascript
(Array), begitu juga sebaliknya
MySql
• Open-source Relational Database
• MySql banyak dipakai untuk aplikasi-aplikasi berbasis
web
• Dapat berjalan di multi-platform seperti Windows, Mac
OS X, dan Linux
• Dijalankan di Nodejs menggunakan module mysql
Fetching API Data
• Request HTTP ke server dan mendapatkan response
• API yang sering digunakan pada Reactjs adalah fetch, dan
axios
Fetch
• API standard Javascript untuk request HTTP
• Attribute fetch : URL, Request Params
Axios
• API request HTTP dari pihak ketiga
• Npm install axios --save
File I/O
• Setup di Web Server
• Menggunakan multer pada nodejs
Question & Answers
Thank You
Sumber : aws.amazon.com
NoSQL vs SQL
Firebase
• Database NoSql
• Realtime
• Backend as Service
• JSON
Backend as a Service (BaaS)
• Model layanan cloud yang memungkinkan developer
mengalihdayakan semua aspek back-end, sehingga
developer hanya focus pada aspek front-end.
• BaaS mencakup :
• Database management
• Cloud storage (for user-generated content)
• User authentication
• Push notifications
• Remote updating
• Hosting
Realtime
• Realtime Database menggunakan sinkronisasi data setiap
kali data berubah
• Semua perangkat terhubung akan menerima update
Cloud Firestore
Realtime Database
• Doc : https://github.com/react-native-community/react-
native-camera
React Native Camera
• Uses Permission di AndroidManifest.xml :
React Native Camera
• Edit file android/app/build.gradle :
React Native Camera + MLKit
• Implementasi MLKit untuk face detection/text
recognition/bar code di RNCamera
• Edit file android/app/build.gradle :