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

concentric-sheet

v0.0.3

Published

n iOS sheet view controller that supports concentric corners + glass.

Downloads

799

Readme

Concentric Sheet

React Native Modal replacement for iOS sheet presentation.

This package keeps React Native's Modal behavior, and adds runtime access to native UIViewController / UISheetPresentationController options such as:

  • Detents (medium, large)
  • Custom detent heights ([78, 350])
  • Grabber visibility
  • Preferred corner radius
  • Selected detent
  • Largest undimmed detent
  • Edge-attached behavior
  • Interactive dismissal lock (isModalInPresentation)
  • Preferred content width/height

Install

bun add concentric-sheet react-native-nitro-modules

Then install iOS pods in your app:

bunx pod-install ./ios

Usage

import React from 'react'
import { View, Text, Button } from 'react-native'
import { Modal } from 'concentric-sheet'

export function Example() {
  const [visible, setVisible] = React.useState(false)

  return (
    <>
      <Button title="Open" onPress={() => setVisible(true)} />
      <Modal
        visible={visible}
        onRequestClose={() => setVisible(false)}
        detents={['medium', 'large']}
        prefersGrabberVisible
        preferredCornerRadius={24}
      >
        <View style={{ flex: 1, padding: 20 }}>
          <Text>Native sheet modal</Text>
          <Button title="Close" onPress={() => setVisible(false)} />
        </View>
      </Modal>
    </>
  )
}

API

Modal accepts all React Native Modal props, plus:

  • detents?: ('medium' | 'large')[]
  • customDetentHeights?: number[] (iOS 16+)
  • selectedDetentIdentifier?: 'medium' | 'large'
  • selectedCustomDetentHeight?: number (iOS 16+)
  • largestUndimmedDetentIdentifier?: 'medium' | 'large'
  • largestUndimmedCustomDetentHeight?: number (iOS 16+)
  • prefersGrabberVisible?: boolean
  • preferredCornerRadius?: number
  • prefersScrollingExpandsWhenScrolledToEdge?: boolean
  • prefersEdgeAttachedInCompactHeight?: boolean
  • widthFollowsPreferredContentSizeWhenEdgeAttached?: boolean
  • isModalInPresentation?: boolean
  • preferredContentWidth?: number
  • preferredContentHeight?: number
  • modalViewBackground?: 'clear' | 'systemBackground'
  • cornerConfiguration?: { type: 'none' | 'fixed' | 'containerConcentric' | 'capsule', radius?: number, minimumRadius?: number, maximumRadius?: number }

Imperative helpers:

  • applyPresentedModalConfig(config)
  • dismissPresentedNativeModal(animated?)

TODO

  • [ ] Android support

Contributing

The native Swift implementation lives in ios/SheetModalController.swift.

The Nitro TypeScript API is defined in src/. When you change props or the spec, regenerate the native bridge code by running:

bunx nitrogen

Commit the generated files in nitrogen/ alongside your changes.

DCO

All commits must be signed off per the Developer Certificate of Origin. Use the -s flag when committing:

git commit -s -m "your commit message"

Notes

  • iOS-only native implementation.
  • UISheetPresentationController options require iOS 15+.
  • cornerConfiguration requires iOS 26+.
  • For sheet behavior, use presentationStyle="pageSheet" or formSheet.
  • Setting largestUndimmedDetentIdentifier can disable outside-tap dismissal at/under that detent because the dimming view is removed.