From 3bee5b36b9871ffb56d8765b77e808d98962268e Mon Sep 17 00:00:00 2001 From: Nicola Corti Date: Tue, 24 May 2022 12:16:25 +0100 Subject: [PATCH] Attempt to fix test_android by adding a react-native.config.js inside rn-tester --- packages/rn-tester/react-native.config.js | 36 +++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 packages/rn-tester/react-native.config.js diff --git a/packages/rn-tester/react-native.config.js b/packages/rn-tester/react-native.config.js new file mode 100644 index 000000000000..df48de8b0958 --- /dev/null +++ b/packages/rn-tester/react-native.config.js @@ -0,0 +1,36 @@ +/** + * 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 + */ + +'use strict'; + +const ios = require('@react-native-community/cli-platform-ios'); +const android = require('@react-native-community/cli-platform-android'); + +module.exports = { + commands: [...ios.commands, ...android.commands], + platforms: { + ios: { + projectConfig: ios.projectConfig, + dependencyConfig: ios.dependencyConfig, + }, + android: { + projectConfig: android.projectConfig, + dependencyConfig: android.dependencyConfig, + }, + }, + reactNativePath: '../../', + project: { + ios: { + sourceDir: '.', + }, + android: { + sourceDir: '.', + }, + }, +};