A basic Starter for React Native + TypeScript development with setup for Eslint, Prettier, Styled-components and more.
๐ The follwing is setup out of the box:
- Consistent coding styles using EditorConfig
- Linting via eslint, typescript-eslint and prettier
- Styles via Styled Components
- Routes via React Navigation
Assuming Node.js is installed, run the following commands to install the project:
$ git clone https://github.com/diogorodrigues/react-native-typescript-starter.git your-project-name
cd your-project-name
rm -rf .git
yarn install
yarn android | ios
Please, read the documentation to apply the correct settings for React Navigation. It will depend on the OS you are working on.
Name | Description |
---|---|
src | Contains your source code that will be compiled to the dist dir |
src/routes | Contains your routes. |
src/pages | Contains your pages. |
src/components | Contains your components. |
src/index.tsx | Entry point to your app |
.editorconfig | EditorConfig settings |
.eslintrc.json | Eslint Settings |
prettier.config.js | Prettier settings |