When creating a new React Native project, use the command:
react-native init projectname --template ts
That's it! 🎉 Then, proceed as usual:
cd projectname
npm start
- TypeScript
- Prettier (with commit hook)
- TSLint
- Jest (broken on react-native 0.56)
- Web support (soon; waiting for react-scripts v2)
npm i -g react-native-cli