https://github.com/joncardasis/react-native-template-requiredev
A minimal React Native template bootstrapped with TypeScript.
https://github.com/joncardasis/react-native-template-requiredev
eslint prettier react-native react-native-template typescript
Last synced: 3 months ago
JSON representation
A minimal React Native template bootstrapped with TypeScript.
- Host: GitHub
- URL: https://github.com/joncardasis/react-native-template-requiredev
- Owner: joncardasis
- License: mit
- Created: 2022-01-21T20:02:30.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-31T15:13:46.000Z (almost 4 years ago)
- Last Synced: 2025-05-19T04:08:44.226Z (8 months ago)
- Topics: eslint, prettier, react-native, react-native-template, typescript
- Language: Java
- Homepage:
- Size: 410 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# React Native Require Development Template
> Minimal React Native template for bootstrapping with TypeScript.
## Features
- Minimal dependencies
- First-class support for TypeScript
- Fully configured with ESLint and Prettier
- Optional [CLI tool]() for machine configuration
## Usage
```Bash
npx react-native init MyApp --template react-native-template-requiredev
```
Read our [recommended project layout]() for best practices on structuring your project.
## Per Project Customization
Once a project layout has been determined, `babel.config.js` should be modified for common aliases. It is most common that all folders uner `src` get their own alias.
```JS
plugins: [
...,
[
'module-resolver',
{
root: ['./src'],
alias: {
assets: './src/assets',
api: './src/api',
screens: './src/screens',
shared: './src/shared',
utils: './src/utils',
},
},
],
],
```
## CLI Tool [:construction: planned]
Always keep development dependencies (Android Studio, Xcode, Node, Ruby, etc) in sync using the included `doctor` tool. The `.doctor` file specifies version compliance.
The CLI Tool is installed by default. You can uninstall using:
```Bash
yarn doctor --uninstall
```
It can be reinstalled anytime by using:
```Bash
yarn add @require-dev/doctor
yarn doctor init
```
#### Usage
```Bash
yarn doctor
```
## License
This project is available under the MIT license. See the LICENSE file for more info.