Clean and minimalist React Native template for a quick start with TypeScript.
This template can be used with the React Native CLI, which means it doesn't mess with the platform specific files. Instead of including a lot of dependencies, my aim when creating this template was to provide a very easy and minimalist way to start your React Native project with TypeScript. Of course you can always include other dependencies as you need them.
- Seamless integration with the React Native CLI! ✨
- Consistent with the default React Native template (no additional stuff)
- React Native TypeScript transformer directly integrated into the packager (no separate process for
tsc
) - Unit testing in TypeScript with TS Jest
- Always latest dependencies 🙌
react-native init MyApp --template typescript
cd MyApp
node setup.js
This template always uses the latest versions of the dependencies at the time when the setup script (node setup.js
) is being executed. This means you don't have to worry about old versions.
Lots of ❤️ and credits to the owners and maintainers of those packages.
The React Native CLI supports automatic installation of production dependencies only. Since TypeScript and the other dependencies are dev dependencies, the setup script is being used to install those. It also takes care of obsolete files like the .flowconfig
and the setup.js
itself after the setup.
The React Native CLI will do everything just as without a template and afterwards overwrite the files with the ones from this template. This means you don't have to worry about incompatibility issues with later React Native upgrades.
Yes it does. Some users reported that they got an error about relative paths when they tried to debug inside Visual Studio Code. In this case check out the fix by Mo Mac.
Contributions are very welcome. Please check out the contributing document.
I created this project in my spare time because I enjoy coding. Of course you can support me by buying me a coffee if you wish. ☕ 😌