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-flexible-button

v2.0.0

Published

A flexible and reusable button component for React Native

Readme

rn-flexible-button 🚀

NPM Version License

📖 Overview

rn-flexible-button is a flexible and reusable button component for React Native (CLI).
It helps you maintain a consistent button UI across your app with support for icons, images, loading states, and fully customizable styles — all through a single component.


🛠️ Installation

Install the package using npm:

npm install rn-flexible-button

✨ Key Features

  • 🎨 Fully customizable styles
  • 🧩 Icon support (vector / image / svg)
  • ↔️ Left & right icon positioning
  • ⏳ Loading state handling
  • 🚫 Disabled state with custom color
  • 🎯 Multiple variants (primary, outline, ghost)
  • 📱 Works on Android & iOS
  • 🧼 Clean and reusable API

🧩 Use Directly

import FlexButton from 'rn-flexible-button';

<FlexButton
  title="Item"
  onPress={() => console.log('Pressed')}
  iconPosition="left"
  variant="primary"
  disabledColor="#DC2626"
  style={{
    backgroundColor: '#DC2626',
    borderRadius: 24,
    paddingHorizontal: 28,
    marginVertical: 12,
    marginHorizontal: 20,
    width: 200,
    alignSelf: 'center'
  }}
  textStyle={{
    fontSize: 16,
    letterSpacing: 0.5,
  }}
/>

✨ Props Can Be Used

| Prop | Description | Default | |------|------------|---------| | title | Text displayed inside the button | null | | onPress | Function triggered when button is pressed | null | | icon | Custom icon element (vector / image / svg) | null | | iconPosition | Position of icon as: left or right | 'left' | | variant | Button style as: primary, outline, ghost | 'primary' | | loading | Shows loading indicator and disables button | false | | disabled | Disables button interaction | false | | disabledColor | Background color when button is disabled | '#9CA3AF' | | style | Custom style for button container | null | | textStyle | Custom style for button text | null |

📸 Preview


🚀 Use Case