An opinionated template that will allow you to start a new React Native project quickly with TypeScript, Prettier, ESLint, and some custom configurations that will make development process better.
Expo Bare TypeScript
Using Expo 46.
Please read Starting React Native Project in 2022 article for details.
Quick start
- Install Expo CLI with
npm install --global expo-cli
oryarn global add expo-cli
. - Create new React Native project with
expo init --template @vladimir-vovk/expo-bare-typescript
. - Change directory to your project's folder with
cd <your-project-name>
. - Run Metro Bundler with
yarn start
. - Build and run the project with
yarn ios
oryarn android
.
Happy hacking!
Features
- TypeScript.
- Absolute path imports (e.g.
import { ComponentA } from 'src/components/A'
). - Prettier.
- Automaticaly sort imports on save.
- Remove React imports.
- Check code for errors with TypeScript compiler and ESLint.
- Generate changelog with standard-version.
- Lint commits with Husky.
- react-native-safe-area-context.
Available commands
-
yarn start
- start Metro Bundler. -
yarn ios
- build and run iOS. -
yarn android
- build and run Android. -
yarn web
- run on web. -
yarn lint
- check code for errors. -
yarn release
- generate a changelog, bump the version of app and create a new tag.