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

rn-global-structure

v1.0.0

Published

React Native Structure

Readme

React Native Custom Template

A powerful and scalable custom template for initializing new React Native projects with a clean architecture, built-in localization, and splash screen integration. Perfect for rapid development with a well-organized structure and essential tooling.

📦 React Native Version

This template uses the latest stable version of React Native:
React Native 0.79.x

Stay up-to-date with official React Native releases


🚀 Features

  • 📁 Components: Reusable UI components
    MButton, MIcons, MInput, MText

  • 🧩 Constants: Global constants used across the app

  • 🌍 i18n: Internationalization via i18next
    → Integrated with Google Sheets for dynamic translation loading

  • 🏁 Splash Screen: Built-in splash screen support for Android and iOS
    → Just replace the image assets (details below)

  • 🚦 Navigation: Pre-configured React Navigation
    → Stack and Tab navigators

  • 📱 Screens: Feature layers
    AppLayer, AuthLayer

  • 🛠 Services: Business logic and shared services
    API, Navigation

  • 🎨 Styles: Global design system (colors, fonts, spacing)

  • ⚙️ Utils: Helpful utility functions
    DeviceInfo, Endpoint, Normalize


🧪 Getting Started

Create a new app using this template:

npx @react-native-community/cli@latest init YourAppName --template rn-global-structure

✨ Splash Screen

Splash screens are already fully integrated.

✅ To Customize:

  • Android

    Replace images in:

android/app/src/main/res/
  ├── mipmap-mdpi/splash.png
  ├── mipmap-hdpi/splash.png
  ├── mipmap-xhdpi/splash.png
  ├── mipmap-xxhdpi/splash.png
  └── mipmap-xxxhdpi/splash.png
  • iOS

    Replace images in:

ios/YourAppName/Images.xcassets/Splash.imageset

No extra configuration needed — just swap the images and rebuild the app.

📁 Folder Structure

src/
│
├── api/               # API configuration and calls
├── assets/            # Images, fonts, icons
├── components/        # Reusable UI components
├── constants/         # Global constants (colors, fonts, etc.)
├── hooks/             # Custom React hooks
├── i18n/              # Localization setup
├── navigation/        # React Navigation config
├── screens/           # App screens by layers (AppLayer, AuthLayer)
├── services/          # Shared services (e.g., API, Navigation)
├── styles/            # Theming and style tokens
├── utils/             # Utility functions
└── main/index.js      # App entry point

👤 Author

  • Vardges Avetisyan

    GitHub: @avetisyanvardges

📝 License

MIT — free to use, modify, and distribute.


---

Let me know if you want this saved as a file or want badges like `npm`, `MIT`, or `Made with ❤️`.