React Native Boilerplate

screenshot of React Native Boilerplate
react
react-native

A React Native project starter with Typescript, a theme provider with hook to easy styling component, a folder architecture ready and some configs to keep a codebase clean.

Overview

The React Native Boilerplate offers a streamlined starting point for developing mobile applications using React Native. With support for TypeScript and a variety of built-in tools, this boilerplate is designed to help developers create robust, scalable applications quickly and efficiently. It includes a customizable theming solution that automatically adapts to the user's device color scheme while also allowing manual theme adjustments, enhancing user experience.

Features

  • TypeScript Support: Built with TypeScript, ensuring type safety and improving code quality.
  • Theming with Context Provider: Utilizes a Context provider and a custom hook (useTheme) for managing and switching themes seamlessly.
  • Automatic Color Scheme Detection: Automatically detects and applies the device's color scheme (light or dark) for a better visual experience.
  • Manual Theme Switching: Users have the option to manually change themes, providing flexibility for personal preferences.
  • Linting and Formatting: Integrated ESLint and Prettier ensure code consistency and adherence to best practices.
  • Testing Capabilities: Comes with React Testing Library to facilitate unit and integration testing, helping maintain high-quality code.
  • Husky for Pre-commit Hooks: Prevents code issues by running scripts during the commit process to ensure that only quality code makes it to the repository.
  • Recommended Conventions: Supports Conventional Commits, Changelog, and Semantic Versioning for better project management and collaboration.
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.

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.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.