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

@data_is_null/tooltip-native-expo

v0.1.0

Published

Zero-latency tooltip with 60/120fps target tracking via Reanimated UI-thread measure

Readme

@data_is_null/tooltip-native-expo

High-performance tooltip for React Native (Expo). Native CADisplayLink/Choreographer tracking at 60-120fps — no JS-thread polling.

Features

  • Native tracking — target position tracked via CADisplayLink (iOS) and Choreographer (Android), zero JS bridge overhead for stationary elements
  • Spotlight overlay — dim background with a precisely cut-out hole around the target, supports borderRadius for circular/rounded highlights
  • Smart positioning — auto-places tooltip where there's room (top, bottom, left, right, auto)
  • Animated — spring scale + opacity transitions via Reanimated
  • Arrow — directional arrow pointing at the target, follows placement
  • Fully customizable — colors, border radius, padding, offset, arrow size, custom content

Installation

npx expo install @data_is_null/tooltip-native-expo

Peer dependencies

npx expo install react-native-reanimated

Quick Start

Wrap your app with TooltipProvider, then use Tooltip around any target element:

import { TooltipProvider, Tooltip } from '@data_is_null/tooltip-native-expo';

function App() {
  return (
    <TooltipProvider>
      <HomeScreen />
    </TooltipProvider>
  );
}

function HomeScreen() {
  const [visible, setVisible] = useState(false);

  return (
    <Tooltip
      visible={visible}
      content={<Text style={{ color: '#fff' }}>Hello!</Text>}
      onDismiss={() => setVisible(false)}
      padding={12}
    >
      <Pressable onPress={() => setVisible(true)}>
        <Text>Tap me</Text>
      </Pressable>
    </Tooltip>
  );
}

Spotlight

Highlight the target element with a dimmed overlay:

<Tooltip
  visible={visible}
  content={<Text style={{ color: '#fff' }}>Check this out</Text>}
  onDismiss={() => setVisible(false)}
  spotlight
  spotlightBorderRadius={16}
  spotlightPadding={8}
  padding={12}
>
  <View style={{ width: 100, height: 100, borderRadius: 16 }}>
    <Text>Target</Text>
  </View>
</Tooltip>

Set spotlightBorderRadius={999} for a circular spotlight around round elements.

API

<TooltipProvider>

Wrap your app (or a subtree) with this provider. Renders the overlay and tooltip bubble above all children.

| Prop | Type | Description | |------|------|-------------| | children | ReactNode | App content |

<Tooltip>

Wraps a target element. Controls visibility and tooltip content.

| Prop | Type | Default | Description | |------|------|---------|-------------| | visible | boolean | — | Show/hide the tooltip | | content | ReactNode | — | Tooltip content | | children | ReactNode | — | Target element | | onDismiss | () => void | — | Called when overlay is tapped | | placement | 'auto' \| 'top' \| 'bottom' \| 'left' \| 'right' | 'auto' | Preferred placement | | offset | number | 8 | Distance from target (px) | | padding | number | 0 | Inner padding of the tooltip bubble | | backgroundColor | string | '#1a1a2e' | Tooltip background color | | borderRadius | number | 8 | Tooltip border radius | | arrowSize | number | 6 | Arrow size (px) | | contentStyle | StyleProp<ViewStyle> | — | Additional style for the tooltip bubble | | spotlight | boolean | false | Enable spotlight overlay | | spotlightPadding | number | 0 | Padding around the spotlight hole | | spotlightBorderRadius | number | 0 | Border radius of the spotlight hole |

How It Works

  1. Native tracking: When a tooltip becomes visible, the native module finds the target view by its React tag and starts a display-link callback (CADisplayLink on iOS, Choreographer on Android). Each frame, it checks the view's screen position — if it changed, it emits an event. For stationary targets, zero events are sent after the initial measurement.

  2. Spotlight overlay: A single View with a large borderWidth creates a dimmed overlay with a geometrically correct rounded hole — no SVG or masking dependencies required.

  3. Positioning: The tooltip bubble position is computed on the JS side using the target rect, available screen space, and preferred placement. If the preferred side doesn't have enough room, it flips to the opposite side.

Platforms

  • iOS 15.1+
  • Android
  • Web (not supported — native module required)

License

MIT