- Install packages with
yarnornpm install.- If you have native iOS code run
npx pod-install
- If you have native iOS code run
- Run
yarn startto start the bundler in CMD (git bash will not work). - Open the project in a React runtime to try it:
-
iOS: Client iOS
-
Android: Client Android
-
Web: Any web browser
-
- React devtools -1) yarn global add react-devtools -2) Type:"react-devtools" -3) You can see details of react native app
- Expo -1) shake device -2) Debug JS remotely -3) Go to debuggerWorker.js > Find your js file
- Simulator -1) CTRL + D
This project can be run from a web browser or the Expo client app. You may find that you want to add more native code later on. You can do this by ejecting the project and rebuilding it yourself.
- Run
yarn ejectto create the native projects. - You can still run your project in the web browser or Expo client, you just won't be able to access any new native modules you add.
- Deploy the native app to the App store and Play store using this guide: Deployment.
- Deploy the website using this guide: Web deployment.
-
npm i -g expo-cli
-
- expo signin -u -p
-
- expo publish
-
- Go to website expo.io to check publishing
-
- For build run: expo build:android
- Learn more about Universal React.
- See what API and components are available in the React runtimes.
- Find out more about developing apps and websites: Guides.
- Command tool "Create React Native" app by Facebook (so that Xcode and Android studio is not required)
- Yarn by Facebook (alternative to npm)
- Expo client (Google Playstore and IOS) - for testing on phone (npm install -g expo-cli)
- yarn global add create-react-native-app (npm install -g create-react-native-app)
- create-react-native-app conFusion
create-react-native react-native-elements react-navigation @5 -- yarn add react-navigation -- yarn add @react-navigation/stack -- yarn add react-native-reanimated react-native-gesture-handler react-native-screens react-native-safe-area-context @react-native-community/masked-view -- expo install react-native-gesture-handler react-native-reanimated react-native-screens react-native-safe-area-context @react-native-community/masked-view -- yarn upgrade @react-navigation/native@latest expo -- yarn add @react-navigation/drawer redux -- yarn add redux -- yarn add react-redux -- yarn add redux-thunk -- yarn add redux-logger (debug) json-server -- yarn add -g json-server → yarn add react-native-swipeout
→ yarn add react-native-animatable redux persist: → yarn add redux-persist → yarn add react-native-async-storage/async-storage
For storage on device using expo-secure-store SecureStore
For notifications and asking of permissions used: 'expo-notifications' 'expo-permissions'
How to use mocked json server https://my-json-server.typicode.com/ Dishes : https://my-json-server.typicode.com/AstralWatcher/react_native_json_server/dishes Dishes id 1 : https://my-json-server.typicode.com/AstralWatcher/react_native_json_server/dishes/1 Whole db https://my-json-server.typicode.com/AstralWatcher/react_native_json_server/db