Skip to content

Commit 23664f8

Browse files
author
Teodor Ciuraru
committed
Add @react-native-community/cli dependency and use build commands
1 parent 1d9cc3c commit 23664f8

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

react-native-expo/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"reset-project": "node ./scripts/reset-project.js",
88
"android": "expo run:android",
99
"ios": "expo run:ios",
10-
"build:android": "react-native run-android --variant=debug",
11-
"build:ios": "react-native run-ios --configuration Debug",
10+
"build:android": "react-native build-android --extra-params \"--no-daemon --console=plain -PreactNativeArchitectures=arm64-v8a\"",
11+
"build:ios": "react-native build-ios --mode Debug",
1212
"web": "expo start --web",
1313
"lint": "expo lint",
1414
"clean": "rm -rf node_modules android ios yarn.lock"
@@ -46,6 +46,7 @@
4646
},
4747
"devDependencies": {
4848
"@babel/core": "^7.25.2",
49+
"@react-native-community/cli": "latest",
4950
"@types/jest": "^29.5.12",
5051
"@types/react": "~19.0.10",
5152
"@types/react-test-renderer": "^18.3.0",

react-native/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"scripts": {
66
"android": "react-native run-android",
77
"ios": "react-native run-ios",
8-
"build:android": "react-native run-android --variant=debug",
9-
"build:ios": "react-native run-ios --configuration Debug",
8+
"build:android": "react-native build-android --extra-params \"--no-daemon --console=plain -PreactNativeArchitectures=arm64-v8a\"",
9+
"build:ios": "react-native build-ios --mode Debug",
1010
"lint": "eslint .",
1111
"start": "react-native start",
1212
"clean": "rm -rf node_modules && yarn install && cd ios && rm -rf Podfile.lock && rm -rf Pods && pod install && cd .."

0 commit comments

Comments
 (0)