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

@modhamanish/rn-mm-template

v1.0.2

Published

A robust and modern React Native template built with TypeScript, designed to jumpstart your mobile application development.

Readme

MMTemplate - React Native TypeScript Boilerplate

Welcome to MMTemplate! This is a robust and modern React Native template built with TypeScript, designed to jumpstart your mobile application development.

🚀 Usage

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

npx @react-native-community/cli@latest init AwesomeProject --template @modhamanish/rn-mm-template

Replace AwesomeProject with your desired project name.

🚀 Features

This template includes the following key libraries and configurations:

📂 Project Structure

The project is organized in the src directory to keep clean separation of concerns:

src/
├── assets/       # Images, fonts, and other static assets
├── components/   # Reusable UI components
├── context/      # React Context definitions (Global State)
├── locales/      # Translation files (i18n)
├── mock/         # Mock data for testing and development
├── navigation/   # Navigation configuration (Stacks, Stacks, etc.)
├── screens/      # Screen components (Views)
├── theme/        # Theme configuration (Colors, Typography, Spacing)
├── types/        # Global TypeScript types and interfaces
└── utils/        # Helper functions and utilities

Key Files & Directories

| Directory / File | Path | Description | | :--- | :--- | :--- | | assets/ | src/assets/ | Stores static assets such as images, fonts, and icons. | | components/ | src/components/ | Contains reusable UI components used throughout the application (e.g., buttons, input fields). | | context/ | src/context/ | Holds React Context definitions for global state management (e.g., ThemeContext, AuthContext). | | locales/ | src/locales/ | Contains translation files for internationalization (e.g., en.json, hi.json). | | mock/ | src/mock/ | Stores mock data used for development and testing. | | navigation/ | src/navigation/ | Contains all navigation-related configuration. | |    └ AppNavigator.tsx | src/navigation/AppNavigator.tsx | The root navigation container. Handles switching between AuthCheck, AuthStack, and AppStack. | |    └ AppStack.tsx | src/navigation/AppStack.tsx | Main application stack (post-login). Defines screens accessible to authenticated users. | |    └ AuthCheck.tsx | src/navigation/AuthCheck.tsx | Entry splash screen logic. Determines authentication state and routes accordingly. | |    └ AuthStack.tsx | src/navigation/AuthStack.tsx | Authentication flow stack. Defines screens like Login and Registration. | | screens/ | src/screens/ | Contains all the screen components (pages) of the application. | | theme/ | src/theme/ | Centralized theme configuration (e.g., Colors, Typography). | | types/ | src/types/ | Stores TypeScript type definitions and interfaces for the application. | | utils/ | src/utils/ | Contains utility functions and helper classes. |

🔐 Authentication Flow

MMTemplate comes with a pre-configured authentication flow managed via React Context.

1. State Management

Authentication state is managed globally using AuthContext (src/context/AuthContext.tsx). You can access user data and authentication methods anywhere in the app:

const { user, updateUser, handleLogout, isUserLoggedIn } = useAuth();

2. Navigation Logic

  • AuthCheck: The entry point component that checks if a user is already logged in (via react-native-mmkv persistence).
  • AuthStack: contains screens for non-authenticated users (Welcome, Login).
  • AppStack: contains the main application screens (Home, Profile, Settings).

Navigation automatically switches between these stacks based on the user state in AuthContext.

3. Mock Credentials

For testing purposes, you can use the following credentials (defined in src/mock/index.ts):

4. Storage Persistence

User sessions are persisted locally using react-native-mmkv, ensuring users stay logged in even after closing the app.


📝 Scripts

  • yarn start: Starts the Metro Bundler.
  • yarn android: Builds and runs the Android app.
  • yarn ios: Builds and runs the iOS app.
  • yarn lint: Lints the project files.
  • yarn test: Runs Jest tests.

Made with ❤️ using MMTemplate.