Init project
# with router and tailwindcss
npx create-expo-app <tên project> --example with-tailwindcss
Folder Structure 01
prefix: pro:
├── src
│ ├── app
│ │ ├── (tab)
│ │ │ ├── _layout.tsx
│ │ │ ├── Form.tsx
│ │ │ ├── Home.tsx
│ │ │ ├── Profile.tsx
│ │ ├── index.tsx
│ │ ├── _layout.tsx
│ ├── components
│ │ ├── Card.tsx
│ │ ├── Dialog.tsx
│ └── utils
│ ├── productStore.ts
│ ├── service.ts
│ └── type.ts
Folder Structure 01
prefix: cart:
├── src
│ ├── app
│ │ ├── (tab)
│ │ │ ├── _layout.tsx
│ │ │ ├── Cart.tsx
│ │ │ ├── Home.tsx
│ │ │ ├── Profile.tsx
│ │ ├── index.tsx
│ │ ├── _layout.tsx
│ ├── components
│ │ ├── Card.tsx
│ │ ├── DataTable.tsx
│ │ ├── Dialog.tsx
│ └── utils
│ ├── cartStore.ts
│ ├── service.ts
│ └── type.ts
Require libraries
npm install @reduxjs/toolkit react-redux axios react-native-paper
| |