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

@teo-garcia/react-native-shared

v0.1.2

Published

Shared React Native and Expo helpers for the teo-garcia template portfolio

Downloads

260

Readme

@teo-garcia/react-native-shared

Shared React Native and Expo helpers for the teo-garcia template portfolio

License: MIT npm React Native TypeScript

Part of the @teo-garcia/templates ecosystem


Overview

This package is the mobile companion to @teo-garcia/react-shared. It keeps the same category mindset, but only for React Native and Expo-friendly helpers.

It is intentionally adapter-based:

  • platform helpers for native vs web detection and platform snapshots
  • storage adapters plus persistent state hooks
  • theme adapters plus mode resolution hooks
  • debug hooks and native-friendly debug components

It does not try to mirror browser-only primitives like DOM portals, focus traps, or Tailwind-specific class merging.


Category Parity

| Category | react-shared examples | react-native-shared direction | | -------- | ------------------------------------ | -------------------------------------------- | | Platform | browser checks, SSR guards | native/web detection, platform snapshots | | Storage | localStorage, sessionStorage | storage adapters, namespacing, persistence | | Theme | color-scheme, media-query helpers | theme mode normalization, system resolution | | Dev | DebugJSON, DevPanel, debug hooks | native debug cards, overlays, render tracing | | Testing | web test wrappers | native test wrappers when needed |

The first four categories now have real APIs. Testing stays intentionally lightweight for now.


Exports

| Export | Description | | -------------------------------------------- | ---------------- | | @teo-garcia/react-native-shared | Package root | | @teo-garcia/react-native-shared/components | Debug components | | @teo-garcia/react-native-shared/dev | Debug hooks | | @teo-garcia/react-native-shared/platform | Platform helpers | | @teo-garcia/react-native-shared/storage | Storage helpers | | @teo-garcia/react-native-shared/theme | Theme helpers |

Included APIs

Platform

  • normalizePlatform
  • resolvePlatformFamily
  • createPlatformInfo
  • isWebPlatform
  • isNativePlatform
  • isMobilePlatform

Storage

  • createStorageKey
  • createStorageKeyFromSegments
  • createMemoryStorageAdapter
  • createPrefixedStorageAdapter
  • useStorageValue
  • jsonStorageSerializer
  • stringStorageSerializer

Theme

  • normalizeThemeMode
  • resolveThemeMode
  • createMemoryThemeSystem
  • useThemeMode
  • DEFAULT_THEME_STORAGE_KEY

Components

  • DebugJSON
  • DevPanel

Dev Hooks

  • useRenderCount
  • useWhyDidYouRender

What Belongs Here

  • React Native and Expo helpers that are useful across mobile templates
  • Shared platform logic that can feed future native hooks and components
  • Lightweight utilities that complement @teo-garcia/react-shared
  • Adapter-based primitives that can be wired to Expo or app-specific storage

What Does Not Belong Here

  • Browser-only DOM primitives
  • Tailwind-specific class merging utilities
  • Web-only hooks that depend on window, document, or localStorage
  • General purpose language helpers that belong in ts-core

License

MIT