@norcy/react-native-toolkit
v0.1.106
Published
My Toolkit
Downloads
140
Readme
@norcy/react-native-toolkit
App 工厂核心组件
安装
yarn add @norcy/react-native-toolkit
维护
【重要】TS 校验和 ESLint 校验
yarn typescript
yarn lint
【重要】发布,记得要先把修改内容提交 Git 后再执行此命令
yarn publish
安装依赖
yarn bootstrap
自动格式校正
yarn lint --fix
调试 Example
yarn example start
调试安卓 Example
yarn example android
调试 iOS Example
yarn example ios
Linting and tests
We use TypeScript for type checking, ESLint with Prettier for linting and formatting the code, and Jest for testing.
Our pre-commit hooks verify that the linter and tests pass when committing.
Scripts
The package.json
file contains various scripts for common tasks:
yarn bootstrap
: setup project by installing all dependencies and pods.yarn typescript
: type-check files with TypeScript.yarn lint
: lint files with ESLint.yarn test
: run unit tests with Jest.yarn example start
: start the Metro server for the example app.yarn example android
: run the example app on Android.yarn example ios
: run the example app on iOS.