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

react-native-design-grid

v0.1.0

Published

A customizable design grid overlay for React Native

Readme

react-native-design-grid

Design inspection overlay for React Native layouts.

It lets you:

  • wrap a screen or navigator with GridOverlay
  • mark only the layout nodes you care about with createTrackedComponent
  • inspect alignment deltas against a manual grid or against a tracked source component

Installation

npm install react-native-design-grid

Quick Start

import { Text, View } from 'react-native';
import { GridOverlay, createTrackedComponent } from 'react-native-design-grid';

const TrackedView = createTrackedComponent(View);

export function HomeScreen() {
  return (
    <GridOverlay
      type="both"
      isVisible
      isCorrectionVisible
      step={16}
      margin={24}
      gutter={12}
    >
      <View style={{ flex: 1, padding: 24 }}>
        <TrackedView trackId="hero-title" style={{ marginTop: 80 }}>
          <Text>Design with a visible rhythm.</Text>
        </TrackedView>

        <TrackedView trackId="primary-cta" style={{ marginTop: 24 }}>
          <Text>Get Started</Text>
        </TrackedView>
      </View>
    </GridOverlay>
  );
}

How It Works

GridOverlay provides the inspection layer and controls.

createTrackedComponent creates tracked versions of native or custom components:

const TrackedView = createTrackedComponent(View);
const TrackedCard = createTrackedComponent(Card);

Only tracked nodes are measured and cycled by the overlay. This is intentional: you usually do not want every node on screen to become a layout target.

Tracked components work inside custom components as long as they are rendered under GridOverlay.

Modes

Manual Grid

Use isAuto={false} or omit it.

The overlay uses:

  • type
  • step
  • columns
  • margin
  • gutter

to draw the grid and compute deltas.

Auto Reference Mode

Use isAuto={true} with source.

<GridOverlay isAuto source="home-label" isCorrectionVisible>
  ...
</GridOverlay>

In this mode:

  • the classic grid is hidden
  • the tracked component identified by source becomes the alignment reference
  • the active tracked item shows how far it is from the source edges

Controls

When showControls is enabled, the overlay renders:

  • a top-left button to show or hide the overlay
  • a top-right button to cycle through tracked items

The overlay itself does not block the UI below it. Only the floating controls are interactive.

API

GridOverlay

Props:

  • type?: 'columns' | 'square' | 'both'
  • step?: number
  • columns?: number
  • color?: string
  • isVisible?: boolean
  • margin?: number
  • gutter?: number
  • isCorrectionVisible?: boolean
  • correctionColor?: string
  • activeTrackId?: string
  • showControls?: boolean
  • isAuto?: boolean
  • source?: string

createTrackedComponent

const TrackedView = createTrackedComponent(View);

The returned component accepts the original component props plus:

  • trackId?: string

Recommended Usage

  • Wrap the navigator or the screen with GridOverlay
  • Track only meaningful layout containers
  • In custom components, track the root container when that component is a relevant layout block

Publish Checklist

Before publishing:

node .yarn\releases\yarn-4.11.0.cjs test
node .yarn\releases\yarn-4.11.0.cjs typecheck
node .yarn\releases\yarn-4.11.0.cjs prepare
npm.cmd pack --dry-run

Then:

npm.cmd login
npm.cmd publish

Contributing

License

MIT