Skip to content

Instantly share code, notes, and snippets.

@rickysullivan
Created April 29, 2020 03:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rickysullivan/0e9f828bd7344faab8760eee8251c036 to your computer and use it in GitHub Desktop.
Save rickysullivan/0e9f828bd7344faab8760eee8251c036 to your computer and use it in GitHub Desktop.
const targets = {
AppOne: {
name: "App One",
},
AppTwo: {
name: "App Two",
},
};
export default ({ config }) => {
return {
...config,
...targets[process.env.npm_config_target]
};
};
@rickysullivan
Copy link
Author

npm run ios --target=AppTwo

@rickysullivan
Copy link
Author

{
...
"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