React Native Boilerplate

screenshot of React Native Boilerplate
react
react-native
styled-components

A react-native project template with the best DX and a focus on performance and best practices.

Overview

The react-native-boilerplate is a production-ready boilerplate for creating React and Redux based mobile applications. It provides a solid base for building scalable apps and comes with a set of tools and features that enhance development efficiency. The boilerplate is recommended for developers with experience in React and Redux, rather than beginners.

Features

  • Test setup: Automatically guarantee code quality and non-breaking changes with a comprehensive test setup. Achieve 100% test coverage for your react-native app.
  • Performance profiling: Profile your app's performance directly from the command line.
  • Scalable app structure: Utilize the provided video guide on how to structure your React apps with scalability in mind. Gain insight into the rationale behind the boilerplate's design decisions.

Quick start (recommended)

Make sure you have Node.js v8.15.1 and npm v5 or above installed. Configure your development environment properly. Use react-native-boilerplate as a template when creating projects with react-native init.

Manual Installation

  1. Clone the repository using the following command:
git clone <repository_url>
  1. Move to the appropriate directory.
  2. Optionally, rename the application by following the provided details.
  3. Run npm run setup to install dependencies and clean the git repository.
  4. To see the example app, run the following commands: For iOS:
react-native run-ios --simulator="iPhone X"

For Android:

react-native run-android

Start the server. 6. Run npm run clean to delete the example app.

Please note that the react-native-boilerplate is intended for experienced developers and not recommended for beginners. If you are new to React or Redux, refer to https://github.com/petehunt/react-howto for an introduction.

Summary

The react-native-boilerplate is a powerful tool for building scalable React and Redux based mobile applications. It provides a comprehensive test setup, performance profiling capabilities, and a well-structured app architecture. The boilerplate is production-ready and recommended for experienced developers who want a solid base to build upon.

react
React

React is a widely used JavaScript library for building user interfaces and single-page applications. It follows a component-based architecture and uses a virtual DOM to efficiently update and render UI components

react-native
React Native

React Native is a framework for building mobile applications using React and JavaScript. It enables developers to write once and deploy to multiple platforms, including iOS, Android, and the web, while providing a native app-like experience to users.

styled-components
Styled Components

Styled Components is a popular library for styling React components using CSS syntax. It allows you to write CSS in your JavaScript code, making it easier to create dynamic styles that are specific to each component.

eslint
Eslint

ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.

Redux

Redux is a state management library for JavaScript apps that provides a predictable and centralized way to manage application state. It enables developers to write actions and reducers that update the state in response to user interactions, server responses, and other events, and can be used with a variety of front-end frameworks and back-end technologies.