How to use the @react-native-community/cli.run function in @react-native-community/cli

To help you get started, we’ve selected a few @react-native-community/cli examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github a-tarasyuk / create-rx-app / template / common / scripts / react-native.js View on Github external
if (
  process.argv.includes('run-ios') && !process.argv.includes('--simulator')
) {
  process.argv.push('--simulator');
  process.argv.push('iPhone 11'); // Set Default simulator
}

require('@react-native-community/cli').run();