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 🙏

© 2025 – Pkg Stats / Ryan Hefner

create-rn-starter-kit

v1.0.10

Published

Interactive CLI for creating modular React Native apps with Expo

Readme

⚠️ DEPRECATION NOTICE

This package is being renamed and restructured. Please use create-dn-starter-kit instead.

Not recommended for production use - This package is experimental and subject to breaking changes without notice.

Create React Native Starter Kit CLI

A CLI tool for creating modular React Native applications with Expo. This tool generates customizable projects with a modular architecture using pre-configured templates for rapid prototyping.

Features

  • 🏗️ Template-Based Architecture: Choose from basic, auth, or full-featured templates
  • 📦 Pre-built Modules: Core and feature modules ready to use
  • 🛠️ Interactive CLI: Easy project setup with template selection
  • 📱 Rapid Prototyping: Get started quickly with pre-configured setups
  • 🔧 Expo Integration: Built on Expo's reliable foundation

Getting Started / Installation

# Create a new project
npx create-rn-starter-kit my-app

# Navigate to the project directory
cd my-app

# Start the development server
npm start

Usage

Basic Usage

create-rn-starter-kit my-app

The CLI will prompt you to select which template you want to use for your project.

Skip Prompts (Use Full Template)

create-rn-starter-kit my-app --yes

Available Templates

Basic Starter

  • Description: Simple app with basic navigation and components
  • Best for: Minimal setup, custom development from scratch
  • Modules: None (clean slate)

Auth Starter

  • Description: Includes authentication and user management
  • Best for: Apps requiring user authentication
  • Modules: Splash Screen, Main Navigator, Account Overview

Full Featured

  • Description: Complete starter with theming, auth, and all modules
  • Best for: Complex apps, rapid prototyping
  • Modules: Splash, Authentication, Combined Auth, Summary, Everyday Banking, Cards, Applications

Generated Project Structure

my-app/
├── src/
│   ├── config/
│   │   ├── modules.ts          # Module definitions
│   └── modules/
│       ├── core/               # Essential modules
│       └── feature/            # Optional feature modules
├── assets/                     # Static assets
├── App.tsx                     # Main app component
├── app.json                    # Expo configuration
├── package.json               # Dependencies
└── tsconfig.json              # TypeScript config

Module System

The project uses a template-based module system defined in src/config/modules.ts. Each template includes a pre-selected set of modules that work together seamlessly.

Available Modules

Core Modules

  • Splash: App startup and loading screens
  • Authentication: User login and authorization
  • Combined Auth: Complete authentication flow
  • Main Navigator: React Navigation integration

Feature Modules

  • Account Overview: Dashboard components
  • Summary: Account summary and overview
  • Everyday Banking: Daily banking operations
  • Cards: Credit and debit card management
  • Applications: Apply for banking products
  • Statements: Transaction history and timelines
  • Payments: Payment processing forms

Adding Custom Modules

Want to add your own modules? Here's how:

1. Create Module Structure

# For core modules
mkdir -p src/modules/core/your-module

# For feature modules
mkdir -p src/modules/feature/your-module

2. Create Module Files

Create your module component:

// src/modules/feature/your-module/index.tsx
import React from 'react';
import { View, Text, StyleSheet } from 'react-native';

const YourModule = () => {
  return (
    <View style={styles.container}>
      <Text style={styles.title}>Your Custom Module</Text>
      {/* Add your module content here */}
    </View>
  );
};

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center',
  },
  title: {
    fontSize: 18,
    fontWeight: 'bold',
  },
});

export default YourModule;

3. Add Module to Configuration

Add your module to src/config/modules.ts:

{
  id: 'your-module',
  name: 'Your Module',
  description: 'Description of what this module does',
  category: 'feature', // or 'core'
  enabled: true,
  dependencies: [], // List any required modules
  priority: 10, // Loading priority (lower numbers load first)
  importFn: () => import('../modules/feature/your-module'),
}

4. Import and Use Your Module

Import and use your module in your App component:

// App.tsx (or your specific App.<template>.tsx)
import React from 'react';
import YourModule from './src/modules/feature/your-module';

const App = () => {
  return (
    <YourModule />
    // Or integrate it into your navigation/layout
  );
};

export default App;

5. Test Your Module

Start the development server to test your changes:

npm start

Module Communication

Modules communicate through standard React patterns:

  • Props: Pass data down to child modules
  • Context: Share state across multiple modules
  • Direct imports: Import utilities or components from other modules
  • Navigation: Use React Navigation to navigate between module screens

Example using React Context:

// src/context/AppContext.tsx
import React, { createContext, useContext } from 'react';

const AppContext = createContext(null);

export const AppProvider = ({ children }) => {
  const [user, setUser] = useState(null);
  
  return (
    <AppContext.Provider value={{ user, setUser }}>
      {children}
    </AppContext.Provider>
  );
};

export const useApp = () => useContext(AppContext);

Then use it in your modules:

// In your module
import { useApp } from '../../context/AppContext';

const YourModule = () => {
  const { user } = useApp();
  
  return (
    <Text>Welcome, {user?.name}</Text>
  );
};

For detailed contribution guidelines, including CLI development, see CONTRIBUTING.md.