Skip to content

Commit e944b34

Browse files
authored
fix: running example ios and android apps (#513)
1 parent f7b5469 commit e944b34

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

apps/example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.0.1",
44
"private": true,
55
"scripts": {
6-
"android": "react-native run-android",
6+
"android": "react-native run-android --appId bottomtabs.example --main-activity com.microsoft.reacttestapp.MainActivity",
77
"build:android": "npm run mkdist && react-native bundle --entry-file index.js --platform android --dev true --bundle-output dist/main.android.jsbundle --assets-dest dist && react-native build-android --extra-params \"--no-daemon --console=plain -PreactNativeArchitectures=arm64-v8a -PnewArchEnabled=true\"",
88
"build:ios": "npm run mkdist && react-native bundle --entry-file index.js --platform ios --dev true --bundle-output dist/main.ios.jsbundle --assets-dest dist",
99
"ios": "react-native run-ios",

apps/example/react-native.config.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
const project = (() => {
22
try {
3-
const { configureProjects } = require("react-native-test-app");
3+
const { configureProjects } = require('react-native-test-app');
44
return configureProjects({
55
android: {
6-
sourceDir: "android",
6+
sourceDir: 'android',
77
},
88
ios: {
9-
sourceDir: "ios",
10-
}
9+
sourceDir: 'ios',
10+
// Letting the RN CLI auto-install pods fails because it expects a Gemfile
11+
// next to the app, which this workspace doesn't use.
12+
automaticPodsInstallation: false,
13+
},
1114
});
1215
} catch (_) {
1316
return undefined;

0 commit comments

Comments
 (0)