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-squircle

v1.2.4

Published

Complete squircle solution for React Native - smooth iOS-style corners for Views and Images. Built on expo-squircle-view with added image clipping support.

Readme

rn-squircle

Complete squircle solution for React Native - smooth iOS-style corners for Views and Images.

Built on top of expo-squircle-view by @WadhahEssam (Malaa-tech) with added SquircleImage component for proper image clipping.

Credits

This library is built on top of the excellent work by Malaa-tech:

The original expo-squircle-view provides a native implementation for Figma corner smoothing (Squircle Shape) for React Native Expo apps. This library adds a SquircleImage component that uses @react-native-masked-view/masked-view to properly clip images with squircle corners.

Why this library?

The original expo-squircle-view works perfectly for Views with background colors, but when you try to clip images using overflow: 'hidden', native image components (like expo-image) don't respect the squircle mask. This library solves that problem by using MaskedView to properly clip images.

Installation

npm install rn-squircle
# or
yarn add rn-squircle
# or
bun add rn-squircle

Peer Dependencies

Make sure you have these installed:

npx expo install expo-image @react-native-masked-view/masked-view

Note: This library requires a development build (expo prebuild). It won't work with Expo Go.

Usage

SquircleView

For views with background colors:

import { SquircleView } from 'rn-squircle';

<SquircleView
  cornerSmoothing={100}
  preserveSmoothing={true}
  style={{
    width: 200,
    height: 200,
    backgroundColor: 'pink',
    borderRadius: 40,
  }}
>
  <Text>Squircle</Text>
</SquircleView>

SquircleImage

For images with squircle clipping:

import { SquircleImage } from 'rn-squircle';

<SquircleImage
  source={{ uri: 'https://example.com/image.jpg' }}
  style={{
    width: 200,
    height: 200,
    borderRadius: 40,
  }}
  cornerSmoothing={100}
  preserveSmoothing={true}
  contentFit="cover"
/>

SquircleButton

For touchable squircle buttons:

import { SquircleButton } from 'rn-squircle';

<SquircleButton
  cornerSmoothing={100}
  style={{
    width: 200,
    height: 50,
    backgroundColor: 'blue',
    borderRadius: 16,
  }}
  onPress={() => console.log('Pressed!')}
>
  <Text>Press me</Text>
</SquircleButton>

API

SquircleView

Re-exported from expo-squircle-view. See original documentation.

| Prop | Type | Default | Description | |------|------|---------|-------------| | cornerSmoothing | number | 100 | Controls smoothing (0 = no smoothing, 100 = max) | | preserveSmoothing | boolean | false | Enhanced rounding for larger borderRadius | | borderRadius | number | 0 | Border radius (can also be in style) | | backgroundColor | ColorValue | - | Background color | | borderColor | ColorValue | - | Border color | | borderWidth | number | 0 | Border width | | style | ViewStyle | - | Standard React Native ViewStyle |

SquircleButton

Re-exported from expo-squircle-view. Same props as SquircleView plus onPress and other TouchableOpacity props.

SquircleImage

All props from expo-image plus squircle-specific props:

| Prop | Type | Default | Description | |------|------|---------|-------------| | cornerSmoothing | number | 100 | Controls smoothing (0 = no smoothing, 100 = max) | | preserveSmoothing | boolean | true | Enhanced rounding for larger borderRadius | | source | ImageSource | - | Image source (same as expo-image) | | contentFit | string | - | How image fits container | | placeholder | object | - | Placeholder/blurhash | | transition | number | - | Transition duration in ms | | style | ImageStyle | - | Must include width, height, and borderRadius |

How SquircleImage works

SquircleImage uses @react-native-masked-view/masked-view with a SquircleView as the mask element:

<MaskedView
  maskElement={
    <SquircleView style={{ backgroundColor: 'black', borderRadius }} />
  }
>
  <Image />
</MaskedView>

The squircle shape acts as a cookie cutter - the image gets clipped to match the exact squircle contour.

Platform Support

  • iOS (requires pod install)
  • Android

License

MIT - See LICENSE

Acknowledgments

Massive thanks to @WadhahEssam and Malaa-tech for creating the original expo-squircle-view library. This library wouldn't exist without their excellent work on the native squircle implementation.