Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6214

Cannot create a React Native + TypeScript app by following official directions

$
0
0

With the following context:

$ node -vv14.8.0$ npm -v6.14.7$ yarn -v1.21.1$ tsc -vVersion 4.0.2

and following the instructions here: https://reactnative.dev/docs/typescript

I tried to create a React Native+TypeScript app with the following command:

$ npx react-native init app --template react-native-template-typescript

but got the following file structure:

enter image description here

where you can see I don't get any .tsx file (I was actually expecting that) even when I used the correspnding TypeScript template on the creation command above.

Later on they have the section: Adding TypeScript to an Existing Project, but I didn't do the the steps there because what I want to do is not exactly add TypeScript to an existing React Native project, but just creating a React Native project with TypeScript from the beginning.

Is there anything wrong I'm doing here?

Thanks for you attention.


Viewing all articles
Browse latest Browse all 6214

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>