Socket
Socket
Sign inDemoInstall

@freakycoder/react-native-bounceable

Package Overview
Dependencies
0
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @freakycoder/react-native-bounceable

Animate and bounce any component with RNBounceable for React Native


Version published
Weekly downloads
3.6K
decreased by-1.36%
Maintainers
1
Install size
36.0 kB
Created
Weekly downloads
 

Readme

Source
React Native Bounceable

Battle Tested ✅

Animate and bounce any component with RNBounceable for React Native

npm version npm Platform - Android and iOS License: MIT styled with prettier

React Native Bounceable

Version 1 🚀

Finally we're published the version 1 for the bounceable library

  • Much better animation with pressIn and pressOut bounces 😍
  • More than 90k downloads and battle tested 💪

Installation

Add the dependency:

npm i @freakycoder/react-native-bounceable

Usage

Import

import RNBounceable from "@freakycoder/react-native-bounceable";

Fundamental Usage

You can put ANY children component inside the RNBounceable component, it will make it bounce when it is pressed

<RNBounceable onPress={() => {}}>
  <View style={styles.bounceButtonStyle}>
    <Text style={styles.bounceButtonTextStyle}>Bounce</Text>
  </View>
</RNBounceable>

Configuration - Props

PropertyTypeDefaultDescription
onPressfunctionundefinedset your own logic for the onPress functionality
stylestyleundefinedset the style like any other View container
bounceEffectnumber0.9change the bounce effect's value
bounceFrictionnumber3change the bounce effect's friction value
useNativeDriverbooleantruechange the useNativeDriver's usage
animatefunctiondefaultactivate the bounce effect animation

Future Plans

  • LICENSE
  • More customizable animation props
  • Write an article about the lib on Medium

Author

FreakyCoder, kurayogun@gmail.com

License

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

Keywords

FAQs

Last updated on 14 Aug 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc