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

my-pressable-component1

v1.0.12

Published

pressable component test

Readme

MyButton Component

Installation

To use the MyButton component in your React Native project, follow these steps:

Install React Native if you haven't already:

java

Copy code npm install -g react-native-cli Create a new React Native project:

csharp

Copy code react-native init MyProject Copy the MyButton.js file into your project's component directory.

Usage To use the MyButton component, import it into your desired file and render it with the desired props. Here's an example:

javascript

Copy code

import React from 'react';
import { View } from 'react-native';
import MyButton from './components/MyButton';

const App = () => {
  return (
    <View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}>
      <MyButton
        title="Click Me"
        onPress={() => {
          console.log('Button pressed!');
        }}
        // Customize the button's appearance by passing additional props
        height={50}
        width={150}
        bgColor="#3498db"
        margin={10}
        borderRadius={5}
        justify="center"
        align="center"
        textColor="#fff"
        textSize={18}
        textAlign="center"
        textWeight="bold"
      />
    </View>
  );
};

export default App;

Props

The MyButton component accepts the following props:

title (string, required): The text displayed on the button.

onPress (function, required): The callback function to be executed when the button is pressed.

height (number): The height of the button (default: 40).

width (number): The width of the button (default: 120).

bgColor (string): The background color of the button (default: '#e0e0e0').

margin (number): The margin around the button (default: 0).

borderRadius (number): The border radius of the button (default: 5).

justify (string): The justify content property of the button (default: 'center').

align (string): The align items property of the button (default: 'center').

textColor (string): The color of the button text (default: '#000').

textSize (number): The font size of the button text (default: 16).

textAlign (string): The text alignment of the button text (default: 'center').

textWeight (string): The font weight of the button text (default: 'normal').

Feel free to customize the component's props to suit your specific needs.

You can include this README file in your project's repository or any other appropriate location to provide documentation and usage instructions for the MyButton component.