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

@sigmela/native-sheet

v0.0.1

Published

df

Downloads

28

Readme

React Native Bottom Sheet

A React Native library for creating truly native sheet components with smooth animations and native feel across iOS and Android platforms.

Features

  • 🎨 Native sheet presentation with platform-specific animations
  • 📜 Smart ScrollView integration with automatic content sizing
  • 🔧 Customizable appearance (corner radius, backdrop opacity, background color)
  • 📱 Support for full-screen and partial height sheets on android
  • 🎯 TypeScript support
  • 🔄 Works seamlessly with @sigmela/router
  • 📚 Can be used standalone with react-native-screens

Installation

yarn add @sigmela/native-sheet

iOS Setup

cd ios && pod install

Android Setup

The Android setup is automatically handled by React Native's autolinking.

Usage with react-native-screens (Standalone)

You can use the library standalone with react-native-screens:

import React, { useState, useRef } from 'react';
import { View, Text, TouchableOpacity, StyleSheet } from 'react-native';
import { ScreenStack, ScreenStackItem } from 'react-native-screens';
import { NativeSheetView, Commands } from '@sigmela/native-sheet';

const SheetContent = ({ onDismiss }) => {
  return (
    <View style={styles.sheetContent}>
      <Text style={styles.title}>Sheet Title</Text>
      <TouchableOpacity style={styles.button} onPress={onDismiss}>
        <Text style={styles.buttonText}>Close Sheet</Text>
      </TouchableOpacity>
    </View>
  );
};

const HomeScreen = ({ onOpenSheet }) => {
  return (
    <View style={styles.container}>
      <TouchableOpacity style={styles.button} onPress={onOpenSheet}>
        <Text style={styles.buttonText}>Open Sheet</Text>
      </TouchableOpacity>
    </View>
  );
};

export default function App() {
  const [showSheet, setShowSheet] = useState(false);
  const sheetRef = useRef(null);

  const openSheet = () => setShowSheet(true);
  
  const dismissSheet = () => {
    if (sheetRef.current) {
      Commands.dismiss(sheetRef.current);
    }
  };

  const onSheetDismissed = () => {
    setShowSheet(false);
  };

  return (
    <ScreenStack style={styles.flex}>
      <ScreenStackItem
        screenId="home"
        style={StyleSheet.absoluteFill}
        headerConfig={{ title: 'Home' }}
      >
        <HomeScreen onOpenSheet={openSheet} />
      </ScreenStackItem>

      {showSheet && (
        <ScreenStackItem
          screenId="sheet"
          stackPresentation="transparentModal"
          headerConfig={{ hidden: true }}
          style={StyleSheet.absoluteFill}
          contentStyle={styles.transparentContent}
          stackAnimation="none"
          onDismissed={onSheetDismissed}
        >
          <NativeSheetView
            ref={sheetRef}
            style={styles.flex}
            onDismissed={onSheetDismissed}
            cornerRadius={18}
            containerBackgroundColor="#ffffff"
            backdropOpacity={0.5}
          >
            <SheetContent onDismiss={dismissSheet} />
          </NativeSheetView>
        </ScreenStackItem>
      )}
    </ScreenStack>
  );
}

const styles = StyleSheet.create({
  flex: {
    flex: 1,
  },
  container: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center',
    backgroundColor: '#f5f5f5',
  },
  sheetContent: {
    padding: 20,
    alignItems: 'center',
  },
  title: {
    fontSize: 20,
    fontWeight: 'bold',
    marginBottom: 20,
  },
  button: {
    backgroundColor: '#007AFF',
    paddingHorizontal: 20,
    paddingVertical: 12,
    borderRadius: 8,
  },
  buttonText: {
    color: 'white',
    fontSize: 16,
    fontWeight: '600',
  },
  transparentContent: {
    backgroundColor: 'transparent',
  },
});

API Reference

NativeSheetView Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | backdropOpacity | number | 0.4 | Opacity of the backdrop behind the sheet | | cornerRadius | number | 0 | Corner radius for the sheet container | | fullscreenTopInset | number | 0 | Top inset when sheet is in fullscreen mode | | containerBackgroundColor | ColorValue | undefined | Background color of the sheet container | | onAppeared | () => void | undefined | Callback fired when sheet appears | | onDismissed | () => void | undefined | Callback fired when sheet is dismissed |

Commands

Commands.dismiss(ref)

Programmatically dismiss the sheet.

  • ref: Reference to the NativeSheetView component
const sheetRef = useRef(null);

const dismissSheet = () => {
  if (sheetRef.current) {
    Commands.dismiss(sheetRef.current);
  }
};

Examples

The repository includes a complete example app demonstrating both usage patterns:

# Clone the repository
git clone https://github.com/sigmela/native-sheet.git
cd native-sheet

# Install dependencies
yarn install

# Run the example (iOS)
yarn example ios

# Run the example (Android)  
yarn example android

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT © sigmela