HolmesJJ / vision-camera-native

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VisionCamera 🗓️

CI Status codecov

Development Setup

Node Package Manager (v8)

https://docs.npmjs.com/cli/v8/commands/npm-install

React Native (CLI Version)

https://reactnative.dev/docs/environment-setup

Other Setup Information

Installing Prettier on Visual Studio Code

https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode
In Visual Studio Code, navigate with the following steps:

  • At the top bar, click View > Extensions
  • At the top of the extensions bar, search for Prettier
  • Click on the install button

Before Pushing Code Changes

Running Lint locally

npm run lint Lint is used as a static code analysis tool that raises up various errors, including non-standard stylistic errors.
To prevent the CI/CD pipeline from failing, it is a good practice to run lint locally first and resolve any errors that appear.

Running Barrel

python3 tools/barrel.py
Barrel is a way of making code more readable and maintanable by combining exports from several modules into a single module.

Common Troubleshooting

Error running react-native run-android

  • Unable to install application onto android
    • Permissions issue with android/gradlew: chmod 755 android/gradlew
    • Corrupted node_modules: delete node_modules folder and run npm install

About


Languages

Language:Java 53.0%Language:TypeScript 33.2%Language:Python 6.3%Language:JavaScript 3.5%Language:Ruby 1.7%Language:Objective-C 1.7%Language:Objective-C++ 0.6%