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-native-reanimated-modal

v1.3.3

Published

A lightweight and performant modal component. Designed for smooth animations, flexibility, and minimal footprint.

Readme

react-native-reanimated-modal

A lightweight, performant modal for React Native — animations on the UI thread, swipe to dismiss in any direction, on top of the native Modal. Built on React Native's own Modal, so it behaves like one on every platform, with its animations and gestures in Reanimated and Gesture Handler.

npm CI bundle size types license

Documentation · Getting started · Animations · Swipe · API · Example app

Features

  • Animations — fade, slide from any edge and scale, at 60 fps on the UI thread.
  • Your own animations — worklets for the content and the backdrop, on top of a preset or on their own.
  • Swipe to dismiss — up, down, left, right, with a threshold and a spring back.
  • Backdrop — a color, your component (a blur), or none; presses close, call your handler, or do nothing.
  • Declarative or imperative — visible + onHide, or ref.current.close().
  • Several at once — coverScreen stacks modals and works in React Navigation's FullWindowOverlay.
  • Native behaviour — the Android back button, translucent bars, iOS orientations.
  • Small — one component in TypeScript, no dependencies of its own.

Install

npm install react-native-reanimated-modal

Peers: react-native-reanimated, react-native-worklets and react-native-gesture-handler — with Expo, npx expo install react-native-reanimated react-native-worklets react-native-gesture-handler.

Version 1.2.5 and later need react-native-worklets 0.7.2+ (Expo SDK 55+). On Expo SDK 54 or Worklets 0.5.1, install [email protected]. Version compatibility

Quick start

import { useState } from 'react';
import { Button, Text, View } from 'react-native';
import { GestureHandlerRootView } from 'react-native-gesture-handler';
import { Modal } from 'react-native-reanimated-modal';

export default function App() {
  const [visible, setVisible] = useState(false);

  return (
    <GestureHandlerRootView style={{ flex: 1 }}>
      <Button title="Show modal" onPress={() => setVisible(true)} />

      <Modal
        visible={visible}
        onHide={() => setVisible(false)}
        animation={{ type: 'slide', direction: 'down' }}
        swipe={{ directions: ['down'] }}
      >
        <View
          style={{
            margin: 20,
            padding: 20,
            borderRadius: 12,
            backgroundColor: 'white',
          }}
        >
          <Text>Hello from the modal!</Text>
        </View>
      </Modal>
    </GestureHandlerRootView>
  );
}

Always pass onHide and set visible to false there: the modal calls it once the user has closed it — backdrop, swipe or back button — and its animation has finished.

Next: the presets and their options, swipe directions, every prop.

Example app

Scan the QR code with Expo Go to open the example app on your phone: a basic modal, a bottom sheet, full screen, blur, scroll, keyboard input, a toast and stacked modals. Or run it from the repository — pnpm install && pnpm example start.

For AI assistants

Every page of the docs is also Markdown — llms.txt, llms-full.txt, more.

Development

pnpm install             # the library, example/ and docs/ (one pnpm workspace)
pnpm example start       # the Expo example, on the library's source
pnpm validate            # typecheck, lint, unit tests, build
pnpm run docs dev        # the documentation on http://localhost:4321/react-native-reanimated-modal/

The workflow, conventions and releases are in CONTRIBUTING.md; architecture notes for coding agents in AGENTS.md.

License

MIT