Skip to content

Latest commit

Β 

History

22 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

render-radar

CI npm version license

Dev-only re-render visualizer for React Native. Wrap a component and watch it flash + count every time it re-renders. No Flipper, no native setup, no config. Ships nothing to production.

demo

Why

memo, useCallback and useMemo only help if you know what is actually re-rendering. Flipper is deprecated and React DevTools' "highlight updates" is awkward on React Native. render-radar gives you an in-app, zero-config answer: a flashing border and a live counter on any component you point it at.

Install

npm i -D render-radar

Usage

<RenderRadar> β€” visual (flash + counter)

Wrap any component. In dev it draws a flashing border and a render counter; in production it renders children and nothing else.

import { RenderRadar } from 'render-radar';

<RenderRadar name="ProductCard">
  <ProductCard {...props} />
</RenderRadar>;

Props:

Prop Type Default Description
name string β€” Label used in logs / future panel.
color string '#ff3b30' Border + badge color.
children ReactNode β€” The subtree to watch.

useRenderRadar β€” the count, in your own hands

Returns how many times the component has rendered. Pass { log: true } to also print to the console.

import { useRenderRadar } from 'render-radar';

function ProductCard(props) {
  const renderCount = useRenderRadar('ProductCard', { log: true });
  // ...
}

Production safety

Every API checks __DEV__. In a release build (__DEV__ === false):

  • <RenderRadar> renders only children β€” no wrapper View, no overlay.
  • useRenderRadar records nothing and never logs.

API

  • <RenderRadar name color? children> β€” wraps children, shows flash + counter on render.
  • useRenderRadar(name, { log? }): number β€” current render count.
  • renderStore β€” the underlying store (advanced / future tooling).

License

MIT

About

πŸ” Dev-only re-render visualizer for React Native β€” flashes and counts every render. Zero native setup, no Flipper.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages