Created
April 29, 2020 03:00
-
-
Save rickysullivan/0e9f828bd7344faab8760eee8251c036 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const targets = { | |
AppOne: { | |
name: "App One", | |
}, | |
AppTwo: { | |
name: "App Two", | |
}, | |
}; | |
export default ({ config }) => { | |
return { | |
...config, | |
...targets[process.env.npm_config_target] | |
}; | |
}; |
{
...
"scripts": {
"start": "react-native start",
"android": "react-native run-android",
"ios": "react-native run-ios",
"web": "expo start --web"
},
...
}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
npm run ios --target=AppTwo