Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

rickysullivan commented Apr 29, 2020

npm run ios --target=AppTwo

@rickysullivan
Copy link
Author

rickysullivan commented Apr 29, 2020

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