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

rn-smart-sheet

v1.0.1-beta.9

Published

A performant bottom sheet component for React Native with Reanimated 2-4 support and integrated keyboard management

Readme

rn-smart-sheet

A high-performance, Pure Native bottom sheet component for React Native. Designed for the New Architecture (Fabric/Bridgeless), it provides elite-level keyboard management and buttery-smooth animations.

npm version License: MIT

🌐 Supported Platforms

  • 🤖 Android: Fully supported (Native via BottomSheetBehavior)
  • 🍎 iOS: Fully supported (Native via UISheetPresentationController with dynamic detents)
  • 💻 Web: Fully supported (DOM/CSS based)

🚀 Why Pure Native?

Unlike traditional bottom sheets that rely on JavaScript listeners and the React Native bridge for keyboard handling, rn-smart-sheet manages everything on the native side.

  • Zero-Latency Keyboard Lift: Perfect, frame-by-frame synchronization with the native Android keyboard animation.
  • Ironclad Stability: Uses a "Stable Height" memory system to prevent the sheet from vanishing or clipping when the Android window resizes.
  • Native Focus Detection: Automatically detects focus in any child input (Native or React) and lifts the sheet instantly.

✨ Features

  • 🎯 New Architecture Ready - Full support for Fabric and Bridgeless mode.
  • ⌨️ Deep Native Keyboard Sync - Integrated WindowInsets handling in Kotlin.
  • 📐 Stable Height Memory - Prevents layout instability during OS-level window resizing.
  • 🔄 Adaptive Snap Points - Support for dynamic sizing and percentage-based snaps.
  • 📱 Modals & Inline Sheets - Exporting both BottomSheet and BottomSheetModal for various UX patterns.
  • 📜 Scrollable Components - Built-in BottomSheetScrollView and BottomSheetFlatList for dynamic content.
  • 👟 Footer Support - Stick components to the keyboard seamlessly with BottomSheetFooter.
  • 🎮 BottomSheetTextInput - Specialized input component for perfect focus integration.
  • 🎨 Customizable Aesthetics - Premium defaults with deep customization for handles and backdrops.

📦 Installation

npm install rn-smart-sheet

Peer Dependencies

npm install react-native-reanimated react-native-gesture-handler

🚀 Quick Start

Here is a comprehensive example using BottomSheetModalProvider and BottomSheetModal:

import React, { useRef } from 'react';
import { View, Button, StyleSheet } from 'react-native';
import { 
  BottomSheetModalProvider, 
  BottomSheetModal, 
  BottomSheetView, 
  BottomSheetTextInput 
} from 'rn-smart-sheet';

const App = () => {
  const bottomSheetRef = useRef(null);

  return (
    <BottomSheetModalProvider>
      <View style={styles.container}>
        <Button title="Open Sheet" onPress={() => bottomSheetRef.current?.expand()} />

        <BottomSheetModal
          ref={bottomSheetRef}
          snapPoints={['25%', '50%', '90%']}
          enablePanDownToClose={true}
        >
          <BottomSheetView style={styles.sheetContent}>
            <BottomSheetTextInput 
              placeholder="Deep Native Focus..." 
              style={styles.input} 
            />
          </BottomSheetView>
        </BottomSheetModal>
      </View>
    </BottomSheetModalProvider>
  );
};

const styles = StyleSheet.create({
  container: { flex: 1, justifyContent: 'center' },
  sheetContent: { padding: 20 },
  input: { borderWidth: 1, borderColor: '#ccc', padding: 10, borderRadius: 8 }
});

export default App;

📖 Key Components

BottomSheetModalProvider & BottomSheetModal

Used to display bottom sheets that appear above all other app content. Must be wrapped in BottomSheetModalProvider.

BottomSheetTextInput

A specialized wrapper around the standard TextInput. When focused, it automatically triggers the native sheet's "lift" behavior, ensuring the input stays visible above the keyboard with zero latency.

BottomSheetView

A layout-optimized container for your sheet content. On Android, this container dynamically grows to accommodate the keyboard height.

BottomSheetFlatList & BottomSheetScrollView

Optimized scrollable components that properly interact with the bottom sheet's pan gestures and keyboard events.

BottomSheetFooter

A sticky footer component that seamlessly moves with the keyboard when an input is focused.

📚 API Reference

BottomSheet / BottomSheetModal Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | snapPoints | SnapPoint[] | required | Array of snap points (e.g., ['25%', 500]) | | index | number | -1 | Initial snap index (-1 means closed for Modals) | | keyboardBehavior | KeyboardBehavior | INTERACTIVE | INTERACTIVE | EXTEND | | enableDynamicSizing | boolean | false | Automatically adjust height to content | | enablePanDownToClose | boolean | false | Allow closing the sheet by dragging down | | footerComponent | FC<BottomSheetFooterProps>| undefined | Sticky footer component |

Keyboard Behaviors

  • INTERACTIVE: The sheet stays at its current snap point and lifts the content.
  • EXTEND: The sheet automatically expands to its maximum height when an input is focused.

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

📄 License

MIT © 2026


Inspired by elite native performance. Built for the modern React Native ecosystem.