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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@arjungenius/react-native-boilerplate

v1.0.5

Published

React Native 0.84.1 Boilerplate Template

Readme

React Native Template Boilerplate

This is the boilerplate project that includes navigation and other essential setups. Use this template to kickstart your React Native project without worrying about initial configurations. Please refer to the README file for setup instructions and a detailed explanation of the boilerplate structure.

Usage

npx @react-native-community/cli@latest init MyApp --template @arjungenius/react-native-boilerplate

Features

  • Folder Structure: Organized folder layout for API, Redux, assets, components, screens, and more.
  • Redux Integration: Includes Redux setup with slices for managing loader and profile states.
  • Asset Management: Handles fonts and images with an export setup for easy access.
  • Internationalization (i18n): Localization support with English language translations.
  • Navigation: Configured with React Navigation for stack and bottom tab navigation.
  • Utility Functions: Common utilities like async services and constants provided.
  • Custom Components: Reusable UI components like loaders and styled text components.
  • TypeScript Support: Includes TypeScript type definitions for enhanced development.

Project Folder Structure

📁src
│
├── 📁api
│   ├── APIManager.ts
│   └── index.ts
│
├── 📁appredux
│   ├── 📁Modules
│   │   ├── LoaderSlice.ts
│   │   ├── ProfileSlice.ts
│   │   └── index.ts
│   └── index.ts
│
├── 📁assets
│   ├── 📁Fonts
│   │   ├── Inter-Black.ttf
│   │   ├── Inter-Bold.ttf
│   └── 📁Images
│       ├── IC_Close.svg
│       ├── IC_CloseWhite.svg
│       └── index.ts
│
├── 📁common
│   ├── asyncServices.ts
│   ├── constant.ts
│   └── index.ts
│
├── 📁components
│   ├── CustomLoader.tsx
│   ├── PrimaryText.tsx
│   └── index.ts
│
├── 📁data
│   └── index.ts
│
├── 📁hooks
│   └── index.ts
│
├── 📁i18n
│   ├── en.ts
│   └── index.ts
│
├── index.tsx
│
├── 📁navigation
│   ├── MainNavigation.tsx
│   ├── RootNavigation.tsx
│   └── index.ts
│
├── 📁screens
│   ├── 📁Home
│   │   └── index.tsx
│   ├── 📁Login
│   │   └── index.tsx
│   └── index.ts
│
├── 📁services
│   └── index.ts
│
├── 📁theme
│   └── index.ts
│
└── 📁types
    └── index.ts

Folder Overview

This section provides a structured overview of the project's folder organization within the src directory. Each folder serves a specific purpose and contains relevant files necessary for developing and maintaining the React Native application. Importing and exporting within the project is centralized through the index.ts files located in each parent folder.

api

Contains API-related files.

  • APIManager.ts: Manages API calls.
  • index.ts: Entry point for API-related exports.

appredux

Contains Redux-related files.

  • LoaderSlice.ts: Redux slice for loader management.
  • ProfileSlice.ts: Redux slice for profile management.
  • index.ts: Entry point for Redux setup.

assets

Contains fonts and images used in the application.

  • Fonts: Inter-Black.ttf, Inter-Bold.ttf, and more.
  • Images: IC_Close.svg, IC_CloseWhite.svg
  • index.ts: Exports image resources.

common

Contains common utility functions and constants.

  • asyncServices.ts: Handles asynchronous services.
  • constant.ts: Contains application constants.
  • index.ts: Entry point for common utility exports.

components

Contains reusable UI components.

  • CustomLoader.tsx: Custom loader component.
  • PrimaryText.tsx: Component for primary text styling.
  • index.ts: Entry point for component exports.

data

Contains data-related configurations.

  • index.ts: Entry point for data configurations.

hooks

Contains custom React hooks.

  • index.ts: Entry point for custom hook exports.

i18n

Contains internationalization files.

  • en.ts: English language translations.
  • index.ts: Entry point for internationalization exports.

navigation

Contains navigation-related components.

  • MainNavigation.tsx: Main navigation configuration.
  • RootNavigation.tsx: Root navigation setup.
  • index.ts: Entry point for navigation exports.

screens

Contains screen components for the application.

  • Home: index.tsx — Home screen component.
  • Login: index.tsx — Login screen component.
  • index.ts: Entry point for exporting screen components.

services

Contains service layer configurations.

  • index.ts: Entry point for service configurations.

theme

Contains theme-related configurations.

  • index.ts: Entry point for theme configurations.

types

Contains TypeScript type definitions.

  • index.ts: Entry point for type definitions.

Babel Aliases

The project uses Babel aliases to simplify imports. By default, the following aliases are configured:

| Alias | Path | |---|---| | @api | ./src/api | | @appredux | ./src/appredux | | @assets | ./src/assets | | @common | ./src/common | | @components | ./src/components | | @data | ./src/data | | @hooks | ./src/hooks | | @i18n | ./src/i18n | | @navigation | ./src/navigation | | @screens | ./src/screens | | @services | ./src/services | | @theme | ./src/theme | | @apptypes | ./src/types |

Customizing or Adding Aliases

To create custom aliases or add additional folders:

  1. Create a New Folder: Inside the src directory, create a new folder for your module or functionality.

  2. Index File: Inside your new folder, create an index.ts file. Import all files and modules from this folder and export them.

  3. Modify Babel Configuration: Update babel.config.js:

module.exports = {
  plugins: [
    [
      'module-resolver',
      {
        alias: {
          '@newAlias': './src/newFolder',
        },
      },
    ],
  ],
};
  1. Update TypeScript Configuration: Modify tsconfig.json:
{
  "compilerOptions": {
    "baseUrl": "./",
    "paths": {
      "@newAlias/*": ["src/newFolder/*"]
    }
  }
}

How to Start the Project

Install node_modules:

npm install

Run on Android:

npm run android

Run on iOS:

npm run ios

Start Metro bundler:

npm start

Powered by React Native