A python script that can be run to build a react-native project with typescript.
-
git clone https://github.com/Afulton11/react-native-init-typescript.git
-
chmod +x react-native-init-typescript/react-native-init-typescript
-
Add the react-native-init-typescript folder to your PATH environment variable.
-
Completely reload your shell
-
Test that it has been installed by running:
react-native-init-typescript --help
To create a react-native project with typescript called Awesome app, just run:
react-native-init-typescript AwesomeApp
This creates the react-native project, installs needed typescript dependencies, and sets up typescript.
For more info run: react-native-init-typescript --help
To run the newly created app on ios or android simply run:
npm run start:ios
, or npm run start:android
respectively.
Dont worry, react-native's live reload feature still works amazingly.