We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bf2c75 commit 96ffd35Copy full SHA for 96ffd35
react-native.config.js
@@ -11,8 +11,14 @@
11
const ios = require('@react-native-community/cli-platform-ios');
12
const android = require('@react-native-community/cli-platform-android');
13
14
+// Remove commands so that react-native-macos can coexist with react-native in repos that depend on both.
15
+const path = require('path');
16
+const isReactNativeMacOS = path.basename(__dirname) === 'react-native-macos';
17
+const iosCommands = isReactNativeMacOS ? [] : ios.commands;
18
+const androidCommands = isReactNativeMacOS ? [] : android.commands;
19
+
20
module.exports = {
- commands: [...ios.commands, ...android.commands],
21
+ commands: [...iosCommands, ...androidCommands],
22
platforms: {
23
ios: {
24
linkConfig: ios.linkConfig,
0 commit comments