-
react-native
withexpo
-
expo-web
based web -
react-navigation
-
nextjs
like structure -
TODO: capability to have
api
code -
Setup your project with Expo
- Install the CLI:
npm i -g expo-cli
cd
into the projectnpm i
oryarn
- Start the project with
yarn web
- Copy
src/config/env.ts
to createsrc/config/env.dev.ts
for maintaining your env data - Go to
http://localhost:19006/
to see your project!
- Install the CLI:
-
Starting web
- ✅
yarn web
- ✅
-
Building web
- ✅
expo build:web
and then serve from any server
- ✅
- Configuration based routes (from
pages
directory) - then passed onto the
Navigator
component inApp.tsx
- In the
src\state-mgmt
folder their exist 4 filessrc\state-mgmt\actions.ts
- Some constants are defined within action.ts
- Here all the actions for the UI Boilerplate is defined
doLogin
==> For Login partupdateState
==> Update the state with a dispatch aslastEmail
src\state-mgmt\app.ts
- Here
initialState
of app is defined.
- Here
src\state-mgmt\reducers.ts
- Here all the reducer are stated where
- For different actions which were defined in
action.ts
file are added in switch case for that particular user as reducers. - env as reducer is also defined here.
- For different actions which were defined in
- Here all the reducer are stated where
src\state-mgmt\store.ts
- Overall store creation with inital state and persistedReducers are defined in
store.ts
file.
- Overall store creation with inital state and persistedReducers are defined in