123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
-
- 'use strict';
-
- const path = require('path');
-
- const macSwitch = '--use-react-native-macos';
- const windowsSwitch = '--use-react-native-windows';
-
- if (process.argv.includes(macSwitch)) {
- process.argv = process.argv.filter(arg => arg !== macSwitch);
- process.argv.push('--config=metro.config.macos.js');
- module.exports = {
- reactNativePath: 'node_modules/react-native-macos',
- };
- }
- else if (process.argv.includes(windowsSwitch)) {
- process.argv = process.argv.filter(arg => arg !== windowsSwitch);
- process.argv.push('--config=metro.config.windows.js');
- module.exports = {
- reactNativePath: 'node_modules/react-native-windows',
- };
- }
- else {
- module.exports = {
- project: {
- ios: {
- project: 'example/ios/',
- },
- android: {
- sourceDir: 'example/android',
- },
- },
- };
- }
|