json 设施的脚本运行react-native

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了json 设施的脚本运行react-native相关的知识,希望对你有一定的参考价值。

"scripts": {
  "start": "node node_modules/react-native/local-cli/cli.js start",
  "test": "jest",
  "react:menu": "adb shell input keyevent 82",
  "react:reload": "adb shell input keyevent 46 46",
  "android:clean": "cd android && ./gradlew clean",
  "android:debug:generate": "cd android && ./gradlew assembleDebug",
  "android:debug:install": "cd android && adb install app/build/outputs/apk/app-debug.apk",
  "android:release:generate": "cd android && ./gradlew assembleRelease",
  "android:release:install": "cd android && adb install app/build/outputs/apk/app-release.apk",
  "android:release:copyfile": "cd android && adb push app/build/outputs/apk/app-release.apk /sdcard/Download",
  "android:reverse": "adb reverse tcp:7007 tcp:7007 && adb reverse tcp:8081 tcp:8081 && adb reverse tcp:5009 tcp:5009 && adb reverse tcp:9090 tcp:9090",
  "ios:clear": "cd ios && rm -rf build"
},

以上是关于json 设施的脚本运行react-native的主要内容,如果未能解决你的问题,请参考以下文章

在 react-native 中运行脚本预构建

react-native: 'RCTFatalException: 没有提供脚本 URL

React-Native 获取 XML 数据

react-native bundle 脚本在 typescript 模块 react-navigation 上抛出语法错误

如何使用 AWS Lambda 脚本通过 Terraform 部署 AWS 基础设施

react-native - 图像需要来自 JSON 的本地路径