/
githubmirror
/
react-native
Обзор
Документация
Войти
/
githubmirror
/
react-native
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/rn-tester/react-native.config.js
60 строк
2 KB
Christian Falch
feat(iOS) swiftpm support in iOS (#57332)
15 июл 2026, 15:08
15 июл 2026, 15:08
47fad09
Код
Авторство
О чём код?
/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format * @noflow */ 'use strict'; // Inside the React Native monorepo, we need to explicitly extend the base // CLI config as the adjacent package will not be conventionally discovered. const config = require('../react-native/react-native.config.js'); module.exports = { ...config, reactNativePath: '../react-native', project: { ios: { sourceDir: '.', }, android: { sourceDir: '../../', // To remove once the CLI fix for manifestPath search path is landed. manifestPath: 'packages/rn-tester/android/app/src/main/AndroidManifest.xml', packageName: 'com.facebook.react.uiapp', }, }, // SPM-only: local native modules not discoverable via autolinking.json. // These are pods added directly in Podfile for rn-tester examples. spm: { modules: [ { name: 'ReactCommonSamples', path: '../react-native/ReactCommon/react/nativemodule/samples/platform/ios', publicHeadersPath: '.', }, { name: 'ReactRCTPushNotification', path: '../react-native/Libraries/PushNotificationIOS', exclude: ['React-RCTPushNotification.podspec'], }, { name: 'ScreenshotManager', path: 'NativeModuleExample', }, { name: 'MyNativeView', path: 'NativeComponentExample/ios', }, { name: 'NativeCxxModuleExample', path: 'NativeCxxModuleExample', }, ], }, };