From dccc081ded25ab3aa054337e26dccdac9483c221 Mon Sep 17 00:00:00 2001 From: Thiago Brezinski Date: Tue, 14 Apr 2026 15:09:53 +0100 Subject: [PATCH] fix: running example ios and android apps --- apps/example/package.json | 2 +- apps/example/react-native.config.js | 11 +++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/apps/example/package.json b/apps/example/package.json index c74fc90c..a95a3bb1 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 630221ef..d329721f 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;