Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@freakycoder/react-native-bounceable

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

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

  • 0.2.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2K
decreased by-76.28%
Maintainers
1
Weekly downloads
 
Created
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

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

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

Package last updated on 21 Oct 2020

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc