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

@bhanushalikaran/react-native-doublepress

v1.0.1

Published

A lightweight and customizable React Native package to easily implement double-press functionality. This package allows you to handle single press and double press gestures on any component seamlessly, with built-in flexibility and performance.

Readme

React Native DoublePress

Version 1 🚀

We are excited to release Version 1 of the React Native DoublePress library:

  • Combines bounce animations with single, double, and long-press gesture handling 😍
  • Intuitive and highly customizable functionality 💡

Description

React Native DoublePress is a versatile and easy-to-use library that enhances user interaction by combining gesture recognition (single, double, and long press) with smooth animations. With its customizable props, you can tailor the bounce effects and gestures to perfectly match your app's design and functionality. Ideal for creating responsive and visually engaging UI elements in your React Native applications.


Installation

Add the dependency:

npm i @bhanushalikaran/react-native-doublepress
OR
yarn add @bhanushalikaran/react-native-doublepress

Usage

Import

import DoublePress from "@bhanushalikaran/react-native-doublepress";

Basic Usage

Wrap any component inside the DoublePress component to add bounce effects and handle single, double, and long-press gestures.

<DoublePress
  onPress={() => console.log("Single press")}
  onDoublePress={() => console.log("Double press")}
  onLongPress={() => console.log("Long press")}
  bounceEffectIn={0.9}
  bounceEffectOut={1}
  bounceVelocityIn={0.2}
  bounceVelocityOut={0.5}
  bouncinessIn={5}
  bouncinessOut={10}
  style={{ backgroundColor: "lightblue", padding: 10, borderRadius: 5 }}
>
  <Text>Press Me</Text>
</DoublePress>

Configuration - Props

| Property | Type | Default | Description | | ------------------ | :------: | :-------: | -------------------------------------------------------- | | onPress | function | undefined | Callback for single press functionality | | onDoublePress | function | undefined | Callback for double press functionality | | onLongPress | function | undefined | Callback for long press functionality | | disableDoublePress | boolean | false | Disables the double press detection | | doublePressDelay | number | 250 | Custom delay for double press detection in milliseconds | | bounceEffectIn | number | 0.93 | Scale value for the bounce effect when pressed in | | bounceEffectOut | number | 1 | Scale value for the bounce effect when released | | bounceVelocityIn | number | 0.1 | Velocity of the bounce animation when pressed in | | bounceVelocityOut | number | 0.4 | Velocity of the bounce animation when released | | bouncinessIn | number | 0 | Determines the "bounciness" when pressed in | | bouncinessOut | number | 0 | Determines the "bounciness" when released | | useNativeDriver | boolean | true | Determines if the animation should use the native driver | | style | style | undefined | Custom style for the wrapper container |


License

React Native DoublePress is available under the MIT license. See the LICENSE file for more info.