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:
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.