Today I Learned

hashrocket A Hashrocket project

Create a React Native App with TypeScript Enabled

The react-native cli has a --template option where you can specify typescript as the template:

react-native init TILApp --template typescript

After the command finishes, there is an extra step that you have to run manually:

cd TILApp && node setup.js

Now you're all set to start editing the App.tsx file.

See More #react TILs
Looking for help? At Hashrocket, our JavaScript experts launch scalable, performant apps on the Web, Android and iOS. Contact us and find out how we can help you.