Skip to content

anwargul0x/groceryApp

Repository files navigation

online Grocery App

Grocery App

Getting Started

  • Yarn
yarn install
  • Run on Android :
yarn android
  • Run on iOS :
yarn ios

Structure

.
├── __tests__
│   ├── App-test.js
├── android
├── ios
├── node_modules
├── src
├── .buckconfig
├── .eslintrc.js
├── .flowconfig
├── .gitattributes
├── .gitignore
├── .prettierrc.js
├── .watchmanconfig
├── App.js
├── app.json
├── babel.config.js
├── index.js
├── metro.config.js
├── package.json
├── Readme.md
└── yarn.lock

Scripts

iOS

  • Install Pods ( npx pod-install )
yarn pods

Android

  • Find Adb devices ( adb devices )
yarn adb
  • Reconnect Adb devices ( adb reverse tcp:8081 tcp:8081 )
yarn adb:reconnect
  • Build debug APK ( npx react-native run-android --variant=release )
yarn android:release:test
  • Build release APK
yarn android:release
  • Build release Bundle For PlayStore
yarn android:bundle

Clean

  • Android ( cd android && ./gradlew clean && cd .. )
yarn clean:android
  • iOS ( rm -rf ios/Pods && rm -rf ios/Podfile.lock )
yarn clean:ios
  • NPM ( rm -rf node_modules && rm -rf package-lock.json )
yarn clean:npm
  • Yarn ( rm -rf node_modules && rm -rf yarn.lock )
yarn clean:yarn

Packager

  • Start ( npx react-native start )
yarn start
  • Reset Cache ( npx react-native start --reset-cache )
yarn packager:reset