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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@edon-app/common

v1.0.6

Published

Use NPM or Yarn to install as a development dependency:

Readme

Installation

Use NPM or Yarn to install as a development dependency:

# with NPM
npm install @edon-app/common

# with Yarn
yarn add @edon-app/common

Flat List Layers

wrapper around React Native’s FlatList for rendering items.

  • It accepts all FlatList props except for children.
  • Instead of using renderItem directly, it takes a children render function to display each item.

Native Styled

This module defines styled components based on React Native primitives and Tamagui.

  • KeyboardAvoidingView

    • A styled version of KeyboardAvoidingView from React Native
  • SafeAreaView

    • A styled SafeAreaView with Tamagui
    • Default background color: $color3, with flex properties to occupy full height
  • ImageBackground

    • A styled ImageBackground with Tamagui
    • Similar flex defaults as SafeAreaView
  • Col

    • A styled version of Stack with a media variant
    • media takes a numeric value and adjusts the width in percentage dynamically

Example

<SafeAreaView>
  <KeyboardAvoidingView>
    <Col media={50}>
      <Text>Half-width Column</Text>
    </Col>
  </KeyboardAvoidingView>
</SafeAreaView>

resolvers

Refer to resolver


SafeArea

The SafeArea component provides a safe rendering area for React Native applications.

It:

  • Uses SafeAreaView to render the inner content.
  • Displays a StatusBar with a customizable style (light-content or dark-content).
  • Supports ImageBackground to wrap the content with a background image if needed.
  • If imageBackground is provided, the content will be rendered inside an ImageBackground.
  • Otherwise, it simply renders a Fragment containing the StatusBar and the content.

✅ Props

  • barStyle → Status bar style (light-content or dark-content)
  • style → Style props for the SafeAreaView
  • imageBackground → Props for the background image

Example

<SafeArea
  barStyle="dark-content"
  style={{ flex: 1, backgroundColor: "white" }}
  imageBackground={{ source: require("./bg.png") }}
>
  <Text>Hello Safe Area</Text>
</SafeArea>