Skip to content

PradeepThite/eliteline

Repository files navigation

  • To open a simulator Library/Android/sdk/emulator ./emulator -avd Copy_of_Pixel_3a_API_32_arm64-v8a

  • To run app in debug mode react-native start --reset-cache react-native run-android

    • Run app in external device issues adb reverse tcp:4000 tcp:4000
  • To create new typescript react native project --> npx react-native init toki --template react-native-template-typescript

  • To create husky scripthttps://typicode.github.io/husky/#/?id=install

    npx husky install npx husky add .husky/pre-commit "npm test"

    npx mrm@2 lint-staged

  • To build debug apk

    • react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res
    • gradlew assembleDebug
    • adb install
    • APK Path : android/app/build/outputs/apk/debug/app-debug.apk

Issues faced and solution wokred

npx patch-package react-native