diff --git a/apps/example/package.json b/apps/example/package.json index c74fc90..a95a3bb 100644 --- a/apps/example/package.json +++ b/apps/example/package.json @@ -3,7 +3,7 @@ "version": "0.0.1", "private": true, "scripts": { - "android": "react-native run-android", + "android": "react-native run-android --appId bottomtabs.example --main-activity com.microsoft.reacttestapp.MainActivity", "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\"", "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", "ios": "react-native run-ios", diff --git a/apps/example/react-native.config.js b/apps/example/react-native.config.js index 630221e..d329721 100644 --- a/apps/example/react-native.config.js +++ b/apps/example/react-native.config.js @@ -1,13 +1,16 @@ const project = (() => { try { - const { configureProjects } = require("react-native-test-app"); + const { configureProjects } = require('react-native-test-app'); return configureProjects({ android: { - sourceDir: "android", + sourceDir: 'android', }, ios: { - sourceDir: "ios", - } + sourceDir: 'ios', + // Letting the RN CLI auto-install pods fails because it expects a Gemfile + // next to the app, which this workspace doesn't use. + automaticPodsInstallation: false, + }, }); } catch (_) { return undefined;