Skip to content

Projek Contoh Untuk Komponen dan Fetch di React-Native Menggunakan TypeScript

Notifications You must be signed in to change notification settings

my-improvement/dogs_app

Repository files navigation

Dogs App

Snack Expo: https://snack.expo.io/9aQuS2J6X

Projek Contoh Untuk Komponen dan Fetch di React-Native Menggunakan TypeScript

App Preview

Catatan

Projek ini di init menggunakan perintah npx react-native init dogs_app --template react-native-template-typescript menggunakan Node.js 15.5.0

Running Project

  • git clone https://github.com/crocodication/dogs_app.git
  • cd dogs_app
  • npm install

Jika menggunakan MacOS, lakukan juga

  • cd ios; pod install; cd ..

Kemudian

  • npx react-native run-android / npx react-native run-ios

Tujuan

Semoga dengan sample project ini bisa mengambil poin - poin sebagai berikut

  • Pemetaan Type untuk props komponen, berguna untuk memunculkan suggest auto-complete props pada komponen custom

Type untuk props komponen

  • Pemetaan Type untuk respon API, berguna untuk memunculkan suggest auto-complete saat mendapatkan data dari API

Type untuk respon API

About

Projek Contoh Untuk Komponen dan Fetch di React-Native Menggunakan TypeScript

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published