DEV Community

Discussion on: How To Make Your Own Custom React Native Templates (2021)

Collapse
 
haiderabbasriz2 profile image
Haider Abbas • Edited

Hi
I am not getting exact RN version that is mentioned in the template.
It is automatically installing the latest version of RN after running last command

Collapse
 
roycechua profile image
Royce Chua

Hello Haider, you might want to check the React Native version on the template you made. If you want it to be exact kindly remove the ^ in the dependency. You might have accidentally had "react-native": "^0.63.4". You should instead have it like this "react-native": "0.63.4".

Check this sample package.json github.com/roycechua23/react-nativ... in one of my examples.

Collapse
 
haiderabbasriz2 profile image
Haider Abbas

Hi Royce
Can you please share your node and npm version ?

Thread Thread
 
roycechua profile image
Royce Chua

This machine that I used recently to make my test and reply to you has the following dependency versions:
Node: 12.18.3
Npm: 6.14.6