npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@gbrlcoelho/react-native-boilerplate

v2.1.3

Published

React Native Boilerplate

Downloads

10

Readme

React Native Boilerplate

This project is a React Native boilerplate that can be used to kickstart a mobile application.

The boilerplate provides a solid foundation for building cross-platform mobile applications. It emphasizes a clear separation of concerns between the UI and business logic, making it easier to maintain and scale your mobile app.

If you like the project, give us a star 🤩.

Table of Contents

Requirements

Node 18 or greater is required. Development for iOS requires a Mac and Xcode (please use the latest version).

You also need to install the dependencies required by React Native.
Go to the React Native environment setup, then select React Native CLI Quickstart tab.
Follow instructions for your given development OS and target OS.

Quick Start

To initialize a new project using this boilerplate, run the following command:

npx react-native@latest init AwesomeProject --template @gbrlcoelho/react-native-boilerplate

Dependencies

  • React Native - A framework for building native apps with React.
  • React Navigation - Routing and navigation for your React Native apps.
  • react-hook-form - Performant, flexible and extensible forms with easy-to-use validation.
  • react-native-mmkv - MMKV is an efficient, small mobile key-value storage framework.
  • @tanstack/react-query - Powerful asynchronous state management for React.
  • react-native-svg - SVG support to React Native on iOS, Android, macOS, Windows, and a compatibility layer for the web.
  • @shopify/restyle - A type-enforced system for building UI components with React Native.
  • axios - Promise based HTTP client for the browser and node.js.
  • date-fns - Modern JavaScript date utility library.
  • @hookform/resolvers - Resolvers for react-hook-form.
  • zod - TypeScript-first schema declaration with static type inference.
  • zustand - A small, fast and scalable bearbones state-management solution.

Dev Dependencies

Folder Structure

The folder structure of this boilerplate is explained below:

.
├── src
│   ├── api
│   │   ├── apiConfig.ts
│   │   └── index.ts
│   ├── assets
│   │   ├── brand
│   │   ├── fonts
│   │   └── icons
│   ├── components
│   │   └── index.ts
│   ├── domain
│   │   ├── Auth
│   │   │   ├── adapter.ts
│   │   │   ├── api.ts
│   │   │   ├── service.ts
│   │   │   └── types.ts
│   │   └── index.ts
│   ├── hooks
│   │   └── index.ts
│   ├── infra
│   │   ├── hooks
│   │   ├── index.ts
│   │   └── types.ts
│   ├── routes
│   │   └── index.ts
│   ├── screens
│   │   └── index.ts
│   ├── services
│   │   └── index.ts
│   ├── test
│   │   ├── server
│   │   │   ├── handlers.ts
│   │   │   └── server.ts
│   │   ├── jestSetup.ts
│   │   ├── test-utils.tsx
│   │   └── index.ts
│   ├── theme
│   │   └── theme.ts
│   ├── types
│   │   └── index.ts
│   └── utils
│       └── index.ts
├── .env
.

src/

This folder is the main container of all the code inside your application.

src/api/

This folder contains all the api related stuff like apiConfig.

src/assets/

This folder contains all the assets of your application like brand, fonts and icons.

src/components/

This folder contains all the shared components of your application.

src/domain/

This folder contains all the domain related stuff like use cases, services, adapters and types.

src/hooks/

This folder contains all the custom hooks of your application.

src/infra/

This folder contains all the infrastructure of react query like hooks and types.

src/routes/

This folder contains all the routes of your application.

src/screens/

This folder contains all the screens of your application.

src/services/

This folder contains all the internal services of your application like MMKV, zustand and etc.

src/test/

This folder contains all the test related stuff like server, jestSetup, test-utils and etc.

src/theme/

This folder contains @shopify/restyle theme of your application.

src/types/

This folder contains all global types of your application.

src/utils/

This folder contains all the utility functions of your application.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About Us

I am a mobile developer and I love to create beautiful and performant mobile applications, if you want to talk about it, please contact me.

Contributing

If you find any problems, please open an issue or submit a fix as a pull request.