Uses the corresponding version of react-native init as specified by the "--version" flag. This allows the module to be used on RNW versions other than "latest" since latest isn't always compatible with every version and a new version may introduce breaking changes.
Test plan
Actually wasn't able to test this module locally, the instructions failed for me :( but tested npx --yes react-native@0.75.0-rc.2 init testcli --directory examples --version 0.75.0-rc.2 --skip-install --npm to make sure it works as intended.
closes #580
Summary
Uses the corresponding version of react-native init as specified by the "--version" flag. This allows the module to be used on RNW versions other than "latest" since latest isn't always compatible with every version and a new version may introduce breaking changes.
Test plan
Actually wasn't able to test this module locally, the instructions failed for me :( but tested
npx --yes react-native@0.75.0-rc.2 init testcli --directory examples --version 0.75.0-rc.2 --skip-install --npm
to make sure it works as intended.