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

@tanstack/react-native-charts

v0.18.0

Published

<div align="center"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://tanstack.com/api/readme/charts.png?title=TanStack%20React%20Native%20Charts&theme=dark" /> <source media="(prefers-color-scheme: li

Downloads

1,111

Readme

TanStack React Native Charts

This compatibility package remains supported for existing applications. New applications use the experimental React Native SVG host from @tanstack/charts/react-native.

Install

npm install @tanstack/charts

Expo applications also need the SDK-compatible SVG renderer:

npx expo install react-native-svg

Bare React Native applications can install it directly:

npm install react-native-svg@^15.15.4

Run bundle exec pod install from ios/ after adding it to a bare iOS application.

Usage

import { scaleLinear } from '@tanstack/charts/scales/linear'
import { lineY } from '@tanstack/charts/line'
import { defineChart } from '@tanstack/charts/scene'
import { Chart } from '@tanstack/charts/react-native'
import { tooltip } from '@tanstack/charts/react-native/tooltip'

const definition = defineChart({
  marks: [lineY([4, 9, 7])],
  scales: {
    x: { scale: scaleLinear().domain([0, 2]) },
    y: { scale: scaleLinear().domain([0, 10]) },
  },
  tooltip: { use: tooltip, sticky: true },
})

export function RevenueChart() {
  return (
    <Chart
      definition={definition}
      accessibilityLabel="Revenue"
      aspectRatio={1.5}
    />
  )
}

Typography

fontFamily, fontStyle, fontStretch, letterSpacing, direction, locale, and fontScale are passed to the synchronous measureText contract. The SVG painter applies the corresponding family, style, stretch, spacing, and font scale. Set direction="rtl" explicitly when the chart reads right to left; the native painter preserves logical start and end anchors. If native font metrics become available asynchronously, keep them in application state and render the chart again with an updated measureText function or typography prop.

Exact core subpaths keep Metro from retaining unrelated universal-entry exports. The /universal barrel remains valid when portability matters more than the native bundle floor.

focusFill supplies the native Canvas fallback for the built-in focus ring's default CSS-variable fill and for line-dot legend centers when the chart background is transparent. Set it to the host background in dark themes. A literal definition.focusRing.fill takes precedence.

The bare fixture uses React Native 0.86.2 with react-native-svg 15.15.5. The Expo 57 fixture uses react-native-svg 15.15.4 and renders in Expo Go on an iOS simulator. It remains experimental: bare-native and Android simulators, physical devices, gestures, accessibility, release builds, and performance still need validation.