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-gnome/tamagui

v0.1.1

Published

Tamagui animation driver for React Gnome — engages @react-gnome/animation directly so `<TamaguiView animation="...">` actually animates under the GTK renderer. Drop-in for @tamagui/animations-react-native.

Readme

@react-gnome/tamagui

Tamagui animation driver bound to @react-gnome/animation. Drop-in alternative to @tamagui/animations-react-native, designed for apps running Tamagui under the React Gnome renderer.

Usage

// tamagui.config.ts
import { createTamagui } from "@tamagui/core";
import { createAnimations } from "@react-gnome/tamagui";

export default createTamagui({
  animations: createAnimations({
    bouncy: { type: "spring", stiffness: 200, damping: 18 },
    lazy:   { type: "timing", duration: 400 },
    quick:  { type: "timing", duration: 150 },
  }),
  // ... rest of config
});

The driver implements the same protocol shape Tamagui's stock RN driver does — isReactNative, supportsCSSVars, useAnimations — so swapping is purely a config-line change.

Why this exists

Tamagui's stock @tamagui/animations-react-native driver imports Animated from react-native-web. Under React Gnome we alias react-native-web → @react-gnome/react-native, which would normally land the driver on our Animated namespace. But @tamagui/core/native (the build users get via the @tamagui/core → @tamagui/core/native resolution) bundles its own self-contained copy of Animated internally. Tamagui's styled-component pipeline routes animated components through that internal copy, not through whatever the external driver exposes.

This driver sidesteps that by owning the tick loop inside the useAnimations hook itself: every numeric style key gets a wrapped AnimatedValue, timing/spring drives it from @react-gnome/animation, and a forceUpdate on each tick re-renders the Tamagui component with the current snapshot. Tamagui's component layer sees plain numbers per frame and renders normally through our reconciler.

How we get past Tamagui v2's animation gate

Tamagui v2 only invokes the driver's useAnimations hook when the component reaches its shouldUseAnimation gate:

hasAnimationProp = !isHOC && "transition" in props || hasAnimatedStyleValue(props.style)
willBeAnimated  = hasAnimationProp && useAnimations && !isHOC
shouldUseAnimation = willBeAnimated && useAnimations && !isHOC

The runtime animation="..." prop alone does NOT pass this gate — Tamagui expects the prop to be translated to a transition prop (or one of the pseudo-state transitions: hoverStyle/pressStyle/focusStyle) at compile time by @tamagui/babel-plugin (Metro/native) or @tamagui/vite-plugin (Vite/web). Neither targets a GJS host, so without intervention the prop stays inert and the driver hook never fires.

The @multiplatform.one/vite-plugin-gnome package's tamaguiPlugin adds a single regex transform that rewrites the gate assignment so "animation" in props ALSO opens the gate:

// before:
hasAnimationProp = Boolean(!isHOC && "transition" in props || ...);
// after:
hasAnimationProp = Boolean(!isHOC && ("transition" in props || "animation" in props) || ...);

With that, <TamaguiView animation="bouncy"> springs as expected — Tamagui calls our useAnimations on every component-state change, the driver drives per-key AnimatedValues toward the new target via spring/timing from @react-gnome/animation, and a forceUpdate per tick re-renders the component with the interpolated style snapshot.

The transform lives next to the other bundle patches in @multiplatform.one/vite-plugin-gnome. Any vite config that consumes the shared tamaguiPlugin gets it automatically (visual / smoketest / main app).

<Animated.View> from @react-gnome/react-native is still a valid path when you want imperative widget-mutation without React re-renders per tick — it's strictly cheaper for very-large animated subtrees. For typical component animations, the Tamagui animation prop now works:

const [active, setActive] = useState(false);
return (
  <TamaguiView
    animation="bouncy"
    width={active ? 180 : 100}
    backgroundColor={active ? "#3584e4" : "#e01b24"}
    onPress={() => setActive((v) => !v)}
  />
);

See also