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

@blinn-motion/react-native

v0.1.3

Published

Blinn Motion React Native adapter — a <BlinnMotionView/> component and useBlinnMotion() hook that play a MotionDoc with native Views.

Downloads

24

Readme

@blinn-motion/react-native

npm license

React Native / Expo adapter for Blinn Motion.

Plays a MotionDoc using native View / Text / Image nodes. Every frame samples the document with @blinn-motion/core and maps the resolved tree to RN styles — the same render method as DOM, Canvas, and React web, so timing matches across platforms.

Install

npm install @blinn-motion/react-native @blinn-motion/core
# peers (from your app):
npm install react react-native

Works with Expo and bare React Native.

Quick start

import { BlinnMotionView } from "@blinn-motion/react-native";
import doc from "./card.motion.json";

export default function Screen() {
  return (
    <BlinnMotionView
      doc={doc}
      loop
      autoplay
      style={{ width: 375, height: 600 }}
    />
  );
}

Imperative control

import { useRef } from "react";
import {
  BlinnMotionView,
  type BlinnMotionHandle,
} from "@blinn-motion/react-native";
import doc from "./card.motion.json";

export function Controlled() {
  const ref = useRef<BlinnMotionHandle>(null);

  return (
    <>
      <BlinnMotionView ref={ref} doc={doc} autoplay={false} />
      {/* ref.current?.play() / pause() / stop() / toggle() */}
      {/* ref.current?.seek(t) / seekFraction(f) / setRate(r) / setProgress(p) */}
    </>
  );
}

Hook: useBlinnMotion

Drive playback yourself or read the resolved tree:

import { useBlinnMotion } from "@blinn-motion/react-native";
import doc from "./card.motion.json";

export function Custom() {
  const { tree, controls } = useBlinnMotion(doc, { autoplay: true });
  // `tree` — resolved RenderTree for the current frame
  // `controls` — stable play / pause / seek / …
  return null; // map `tree` to your own views if needed
}

Style mapping helpers

import { nodeToTransform } from "@blinn-motion/react-native";

const style = nodeToTransform(renderNode); // → ViewStyle-ish fields

v1 limitations

React Native is a progressive adapter — web DOM/Canvas still lead fidelity:

| Area | Behavior | |------|----------| | Gradients | Fall back to solid (first stop of linear) | | Vector paths / polygon / star | Not drawn as paths yet | | Anchors | Centre-approximate ({x:0.5,y:0.5} is exact) | | Effects | Blur / drop / inner shadow not mapped yet | | Image paints on shapes | Ignored; image layers use <Image> |

For full web fidelity use @blinn-motion/react with renderer="dom". Future work: react-native-svg / expo-linear-gradient backends.

Example apps

In the monorepo:

  • examples/expo — Expo + this adapter
  • examples/react-native — RN shell
# from repo root after npm install && npm run build
npm run start --workspace @blinn-motion/example-expo

Docs

License

MIT © Blinn Motion