Giter Site home page Giter Site logo

cfatrane / react-native-boilerplate Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 453 KB

WIP: Expo & React Native Boilerplate, Eslint, Prettier, Expo Router

TypeScript 38.24% JavaScript 60.58% Shell 1.18%
api-management app-development cross-platform eslint expo mobile-app mobile-development open-source react-native react-native-app tanstack-query typescript

react-native-boilerplate's Introduction

React Native Boilerplate + Expo + Typescript

Features ๐Ÿ› ๏ธ

  • Husky ๐Ÿถ : Automatically lint your commit messages, code, and run tests upon committing or pushing.
  • Jest : For unit and integration testing
  • ESlint : Statically analyzes your code to quickly find problems. It is built into most text editors and you can run ESLint as part of your continuous integration pipeline.
  • Prettier : An opinionated code formatter. It enforces a consistent style by parsing your code and re-printing it with its own rules that take the maximum line length into account, wrapping code when necessary.
  • VSCode : Configuration file and recommended extensions

Soon โฑ๏ธ

  • Authentication
  • Others

Getting Started ๐Ÿค”

First, run the development server:

npm run start
# or
yarn start
# or
pnpm start
# or
bun start

Open the Expo App on your phone and scan the QR Code.

Scripts

start: "expo start",
android: "expo start --android", # Start with an Android emulator
ios: "expo start --ios", # Start with an iOS emulator
web: "expo start --web",
lint: "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
lint:debug: "eslint --debug",
lint:fix: "eslint --fix .",
ts:check: "tsc",
prepare: "husky install"

Project Structure ๐Ÿ“

โ”œโ”€โ”€ .eslintcache
โ”œโ”€โ”€ .eslintrc.js
โ”œโ”€โ”€ .expo
โ”œโ”€โ”€ .gitignore
โ”œโ”€โ”€ .husky
โ”œโ”€โ”€ .prettierrc
โ”œโ”€โ”€ .vscode
โ”œโ”€โ”€ app
โ”‚   โ”œโ”€โ”€ (tabs)
โ”‚   โ””โ”€โ”€ _layout.tsx
โ”œโ”€โ”€ app.json
โ”œโ”€โ”€ assets
โ”‚   โ”œโ”€โ”€ adaptive-icon.png
โ”‚   โ”œโ”€โ”€ favicon.png
โ”‚   โ”œโ”€โ”€ icon.png
โ”‚   โ””โ”€โ”€ splash.png
โ”œโ”€โ”€ babel.config.js
โ”œโ”€โ”€ components
โ”‚   โ””โ”€โ”€ Button
โ”œโ”€โ”€ expo-env.d.ts
โ”œโ”€โ”€ package.json
โ””โ”€โ”€ tsconfig.json

VSCode Extensions ๐Ÿ’ป

The Better Comments extension will help you create more human-friendly comments in your code. With this extension, you will be able to categorize your annotations into:

  • Alerts
  • Queries
  • TODOs
  • Highlights
  • Commented out code can also be styled to make it clear the code shouldn't be there
  • Any other comment styles you'd like can be specified in the settings

Integrates ESLint into VS Code. If you are new to ESLint check the documentation.

The extension uses the ESLint library installed in the opened workspace folder. If the folder doesn't provide one the extension looks for a global install version. If you haven't installed ESLint either locally or globally do so by running npm install eslint in the workspace folder for a local install or npm install -g eslint for a global install.

On new folders you might also need to create an .eslintrc configuration file. You can do this by either using the VS Code command Create ESLint configuration or by running the eslint command in a terminal with npx eslint --init.

SonarLint by Sonar is a free IDE extension that empowers you to fix coding issues before they exist. More than a linter, SonarLint detects and highlights issues that can lead to bugs, vulnerabilities, and code smells as you create your code. It offers clear remediation guidance and educational help, so you can fix issues before the code is committed. SonarLint in VS Code supports analysis of JS/TS, Python, PHP, Java, C, C++, C#, Go, and IaC code locally in your IDE.

ErrorLens turbo-charges language diagnostic features by making diagnostics stand out more prominently, highlighting the entire line wherever a diagnostic is generated by the language and also prints the message inline.

Learn More ๐Ÿง 

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Suggestions โ˜๏ธ

Components

State Management

Validation

react-native-boilerplate's People

Contributors

cfatrane avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.