From 73b6f93f90021488d6e2e724f37906b99f2b0cd0 Mon Sep 17 00:00:00 2001 From: Maykon Michel Palma Date: Thu, 8 Sep 2022 04:31:13 -0700 Subject: [PATCH] fix!: dependency.platforms.ios.project is not allowed on RN 0.69 (#3860) Summary: BREAKING CHANGE: it won't work with react-native CLI 4.2.2 as it will search for an xcode project Fixes https://github.com/facebook/flipper/issues/3859 ## Changelog fix: dependency.platforms.ios.project is not allowed on RN 0.69 Pull Request resolved: https://github.com/facebook/flipper/pull/3860 Test Plan: I don't know how to test my branch directly, but I did a simple change that can easily be tested with this method: Start a fresh `react-native` 0.69 project: ``` npx react-native init flipperBugTest ``` Then install `react-native-flipper` package: ``` yarn add -D react-native-flipper ``` Navigate to `flipperBugTest/node_modules/react-native-flipper` and delete `react-native.config.js` file. And start `react-native` metro: ``` react-native start ``` Reviewed By: antonk52 Differential Revision: D39345618 Pulled By: lblasa fbshipit-source-id: 2cc74e2dd7100aab693c8e66f01d5b4ced402dd3 --- .../react-native.config.js | 20 ------------------- 1 file changed, 20 deletions(-) delete mode 100644 react-native/react-native-flipper/react-native.config.js diff --git a/react-native/react-native-flipper/react-native.config.js b/react-native/react-native-flipper/react-native.config.js deleted file mode 100644 index 9b962ed1c..000000000 --- a/react-native/react-native-flipper/react-native.config.js +++ /dev/null @@ -1,20 +0,0 @@ -/** - * 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 - */ - -module.exports = { - dependency: { - platforms: { - ios: { - // This file should not be needed at all, but without it. - // cli 4.2.2 will search for an xcode project - project: '.', - }, - }, - }, -};