mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: This adds script to better work with RN Tester from the root of the repo. - `yarn start` is broken as of today - `yarn android` is not working fine and I've adapter it here. This should make easier to work with RN Tester from within the Repo. Changelog: [Internal] [Changed] - Add scripts to `yarn start` and `yarn android` from root Reviewed By: mdvacca, cipolleschi Differential Revision: D45735926 fbshipit-source-id: eaebf80b8819ee42ccb9c14b67f8945167bf05e6
43 lines
1.3 KiB
JSON
43 lines
1.3 KiB
JSON
{
|
|
"name": "@react-native/tester",
|
|
"version": "0.0.1",
|
|
"private": true,
|
|
"description": "React Native tester app.",
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/facebook/react-native.git",
|
|
"directory": "packages/rn-tester"
|
|
},
|
|
"engines": {
|
|
"node": ">=16"
|
|
},
|
|
"scripts": {
|
|
"start": "react-native start",
|
|
"android": "react-native run-android --mode HermesDebug --appId 'com.facebook.react.uiapp' --main-activity 'com.facebook.react.uiapp.RNTesterActivity'",
|
|
"install-android-jsc": "../../gradlew :packages:rn-tester:android:app:installJscDebug",
|
|
"install-android-hermes": "../../gradlew :packages:rn-tester:android:app:installHermesDebug",
|
|
"clean-android": "rm -rf android/app/build",
|
|
"setup-ios-jsc": "bundle install && USE_HERMES=0 bundle exec pod install",
|
|
"setup-ios-hermes": "bundle install && USE_HERMES=1 bundle exec pod install",
|
|
"clean-ios": "rm -rf build/generated/ios Pods Podfile.lock"
|
|
},
|
|
"dependencies": {
|
|
"flow-enums-runtime": "^0.0.6",
|
|
"invariant": "^2.2.4",
|
|
"nullthrows": "^1.1.1"
|
|
},
|
|
"peerDependencies": {
|
|
"react": "18.2.0",
|
|
"react-native": "*"
|
|
},
|
|
"codegenConfig": {
|
|
"name": "AppSpecs",
|
|
"type": "all",
|
|
"jsSrcsDir": ".",
|
|
"android": {
|
|
"javaPackageName": "com.facebook.fbreact.specs"
|
|
}
|
|
}
|
|
}
|