chenru-react-native-test
安装 React Native 模块
npm 安装 chenru-react-native-test 模块
npm install chenru-react-native-test
link
chenru-react-native-test 模块(0.60 以下版本)
react-native link chenru-react-native-test
配置 package.json
在 package.json 文件增加如下配置:
"scripts": {
"postinstall": "node node_modules/chenru-react-native-test/SensorsDataRNHook.js -run"
}
执行 npm install 命令
npm install