How to Create a React Native Project with Specific React Native Version

When we create a new react native project we prefer the latest version of react native. But in some situations, we might need to create a new project using specific react native version. This usually happens when the latest version of react native has many breaking changes and is unstable.

react-native init ProjectName is the command used to create a new react native project with the latest version. If you want to create project with specific version then use the following command:

react-native init ProjectName –version X.XX.X

For example, if you want to create a project with react native 0.59.9 version then we use react-native init ProjectName –version 0.59.9 command. After creating the project make sure to verify the react native version by opening package.json file.

Leave a Reply

%d bloggers like this: