mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
afe06e5831
Summary: Currently users have to use the global `react-native` command or run `yarn react-native run-x` which isn't very nice. This PR adds `android` and `ios` scripts to `package.json` so users can run `yarn android` or `yarn ios` directly. Pull Request resolved: https://github.com/facebook/react-native/pull/25618 Differential Revision: D16223229 Pulled By: cpojer fbshipit-source-id: 69b082760ff2ee31ab0406251f9a50339fd227bf
28 lines
627 B
JSON
28 lines
627 B
JSON
{
|
|
"name": "HelloWorld",
|
|
"version": "0.0.1",
|
|
"private": true,
|
|
"scripts": {
|
|
"android": "react-native run-android",
|
|
"ios": "react-native run-ios",
|
|
"start": "react-native start",
|
|
"test": "jest"
|
|
},
|
|
"dependencies": {
|
|
"react": "16.8.1",
|
|
"react-native": "1000.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.5.0",
|
|
"@babel/runtime": "^7.5.0",
|
|
"@react-native-community/eslint-config": "^0.0.3",
|
|
"babel-jest": "^24.1.0",
|
|
"jest": "^24.1.0",
|
|
"metro-react-native-babel-preset": "^0.51.1",
|
|
"react-test-renderer": "16.8.1"
|
|
},
|
|
"jest": {
|
|
"preset": "react-native"
|
|
}
|
|
}
|