When I have everything configured, initialize the project perform
npx react-native init AwesomeTSProject --template react-native-template-typescript
then cmd The hint is that
Need to install the following packages:
react-native
Ok to proceed?
I typed Y
But I don't have any initialization files in my folder, as shown in the figure below :
I wonder Why there's nothing , And then I did yarn add react-native Pictured
And then execute
npx react-native init AwesomeTSProject --template react-native-template-typescript
And then there is
Although I solved the problem , But I'm still a little confused , Why do I need to be alone yarn add react-native
Is it a hint I Need to install react-native I choose to Y Not for me yarn add react-native?