cli
cli copied to clipboard
fix: use preferred device in default mode
Summary:
In https://github.com/react-native-community/cli/pull/2162 I added preferred device feature - it saves device id to cache, and then when running run-ios
command it'll push preferred device to the beginning.
For some strange reason, we only enabled this for --interactive
or --list-devices
mode. In this Pull Request preferred device is also in default mode.
Test Plan:
- Clone the repository and do all the required steps from the Contributing guide
- Run
run-ios --interactive
pick a simulator - Open bunch other simulators
- Run this command:
node /path/to/react-native-cli/packages/cli/build/bin.js run-ios
- It should pick one that was selected in the interactive prompt.
Checklist
- [x] Documentation is up to date to reflect these changes.
- [x] Follows commit message convention described in CONTRIBUTING.md
For some reason Windows Job is failing - all passes locally.