Coder Social home page Coder Social logo

rn-boilerplate's Introduction

RnBoilerplate

A React Native boilerplate project to kickstart your development with pre-configured settings.

Table of Contents

Introduction

RnBoilerplate is a starting point for building React Native applications with a modern setup. It includes a set of pre-configured tools and libraries to streamline your development workflow.

Features

  • React Navigation for easy navigation management.
  • TypeScript for type safety.
  • ESLint and Prettier for code linting and formatting.
  • Jest for testing.
  • Husky and pretty-quick for pre-commit hooks.

Requirements

  • Node.js >= 18

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/RnBoilerplate.git
    cd RnBoilerplate
  2. Install the dependencies:

    npm install
  3. Install the necessary iOS dependencies:

    npx pod-install ios

Scripts

  • android: Runs the Android app.
  • ios: Runs the iOS app.
  • lint: Runs ESLint for linting the code.
  • start: Starts the React Native packager.
  • type: Builds the TypeScript files.
  • test: Runs the Jest test suite.
  • prepare: Prepares Husky hooks.

You can run these scripts using npm run <script>.

Dependencies

  • @react-navigation/native: ^6.1.18
  • @react-navigation/native-stack: ^6.10.1
  • react: 18.2.0
  • react-native: 0.74.1
  • react-native-safe-area-context: ^4.10.8
  • react-native-screens: ^3.32.0

Project Structure

RnBoilerplate/
├── app/
│   ├── modules/
│   │   └── home/
│   │       └── screens/
│   │           └── HomeScreen.tsx
│   ├── AppContent.tsx
│   └── ...
├── node_modules/
├── .eslintrc.js
├── .prettierrc
├── tsconfig.json
├── package.json
└── ...

rn-boilerplate's People

Contributors

taranvitalii 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.