A practice repo for react native, using Expo with Typescript
This is a prototype of how we're gonna build mobile apps
Download and install Expo on your mobile device, you should be able to get it in App Store and Play Store
- yarn start # you can open iOS, Android, or web from here, or run them directly with the commands below.
- yarn android
- yarn ios
- yarn web
here's how to setup both environments:
-
install expo client
sudo npm i -g expo-cli -
init the app using expo
expo init client -
when under clinet folder, start your expo metro bundler with
yarn starta localhost page directing to http://localhost:19002/ should appear
-
on your mobile device, open Expo Client App, and scan the QR code on your metro bundler page. other debug methods please view https://www.youtube.com/watch?v=0-S5a0eXPoc&t=33s
-
Adding test libraries
yarn add --dev jest jest-expo jest-fetch-mock @types/jest @testing-library/react-native