Skip to content

Instantly share code, notes, and snippets.

@jamesporter
Created August 25, 2021 20:47
Show Gist options
  • Select an option

  • Save jamesporter/9b03e235a5ecfda9bed2107d394674d0 to your computer and use it in GitHub Desktop.

Select an option

Save jamesporter/9b03e235a5ecfda9bed2107d394674d0 to your computer and use it in GitHub Desktop.
React Native package.json different iOS devices snippet

Notes

This example includes two devices of screenshot size currently required by Apple.

Look to see if anyone has somehow done something general like this, but more ergonomic, if not do something like that which prompts user to pick from available simulators. Also what about Android?

{
"ios": "react-native run-ios",
"ios:iPad": "react-native run-ios --simulator=\"iPad Pro (11-inch) (3rd generation)\"",
"ios:iPhone8": "react-native run-ios --simulator=\"iPhone 8 Plus\"",
"ios:iPhone11": "react-native run-ios --simulator=\"iPhone 11 Pro Max\""
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment