'npx react-native init creates app with wrong version of React Native
Using the following command:
npx react-native init MyApp --template react-native-template-typescript --version 0.63.4
or
npx react-native init MyApp --version 0.63.4 --template react-native-template-typescript
creates an app using React Native 0.68.2 - I need version 0.63.4 - what is the correct command?
Update - I have tried this command:
npx react-native init ExperienceApp --template [email protected]
as described here: How to create specify typescript RN version?
but I get the error:
error Couldn't find any versions for "react-native-template-typescript" that matches "6.5.9"
and I have tried this as in the docs: https://github.com/react-native-community/react-native-template-typescript#usage-with-older-versions-of-react-native
npx react-native init MyApp --template [email protected].*
but I get the error:
no matches found: [email protected].*
Solution 1:[1]
Solved by changing this: npx react-native init MyApp --template [email protected].*
to this npx react-native init MyApp --template [email protected]
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Mr. Robot |