callstack / react-native-builder-bob

👷‍♂️ Simple set of CLIs to scaffold and build React Native libraries for different targets
https://callstack.github.io/react-native-builder-bob/
2.78k stars 184 forks source link

Uses the corresponding react-native init version #581

Closed TatianaKapos closed 3 months ago

TatianaKapos commented 3 months ago

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.

TatianaKapos commented 3 months ago

@satya164 let me know if you need anything else from me! This should fix using this module with the new nightly versions of RN :)

satya164 commented 3 months ago

I'll check locally and release tomorrow.