https://github.com/davidthorn/react-native-map
https://github.com/davidthorn/react-native-map
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/davidthorn/react-native-map
- Owner: davidthorn
- License: mit
- Created: 2019-02-03T18:25:57.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-03T18:26:39.000Z (over 7 years ago)
- Last Synced: 2025-01-31T14:47:44.763Z (over 1 year ago)
- Language: TypeScript
- Size: 221 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# :space_invader: React Native Template TypeScript · [](https://travis-ci.org/emin93/react-native-template-typescript)
Clean and minimalist React Native template for a quick start with TypeScript.
[](https://medium.com/@emin93/react-native-typescript-b965059109d3)
## :star: Features
- Seamlessly integrated into the React Native CLI! :sparkles:
- Consistent with the default React Native template
- Always latest dependencies :raised_hands:
## :arrow_forward: Quick Start
```bash
react-native init MyApp --template typescript && node MyApp/setup.js
```
## :question: FAQ
### Why this template when React Native 0.57+ supports TypeScript out of the box?
Actually, when React Native 0.57 was announced, I planned to stop maintenance on this template. But after further evaluation, there's still quite a lot of manual work to do (add type definitions for React & React Native, create a `.tsconfig` for type checking, etc.) to properly set up a React Native 0.57+ TypeScript project. And that's where this template comes in and does that work for you. :raised_hands:
### What additional dependencies are included in this template?
- [TypeScript](https://github.com/Microsoft/TypeScript)
- [Type definitions for React & React Native](https://github.com/DefinitelyTyped/DefinitelyTyped)
This template always uses the latest versions of the dependencies at the time when the `react-native init` command is being executed. This means you don't have to worry about old versions.
Lots of :heart: and credits to the owners and maintainers of those packages.
### Why the setup script?
It deletes obsolete files like the `.flowconfig` and the `setup.js` itself after the setup.
### How to do type checking?
`npm run tsc`
### Does debugging work?
Yes it does.
[](https://medium.com/@emin93/react-native-typescript-b965059109d3)
## :globe_with_meridians: Links
- ["Using React Native with TypeScript just became simple" on Medium](https://medium.com/@emin93/react-native-typescript-b965059109d3)
- ["24 tips for React Native you probably want to know" on Albert Gao's blog](http://albertgao.xyz/2018/05/30/24-tips-for-react-native-you-probably-want-to-know/#9-For-Typescript)
- ["3 Easy Steps to Set Up React Native with TypeScript, Jest and Enzyme" on Medium by Jan Hesters](https://medium.com/@jan.hesters/3-easy-steps-to-set-up-react-native-with-typescript-jest-and-enzyme-592ca042262f)
## :computer: Contributing
Contributions are very welcome. Please check out the [contributing document](https://github.com/emin93/react-native-template-typescript/blob/master/CONTRIBUTING.md).
### Donations
I created this project in my spare time because I enjoy coding. Of course you can support me by [buying me a coffee](https://www.paypal.me/emin93) if you wish. :coffee: :relieved: