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

react-native-animation-library

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-animation-library

Animation library built in `JavaScript` only. All animation created with `Animated` API and boosted with `useNativeDriver` which uses the native animation by `RCTAnimation`.

  • 0.0.8
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1.8K
increased by15.29%
Maintainers
1
Weekly downloads
 
Created
Source

React Native Animation Library

Animation library built in JavaScript only. All animation created with Animated API and boosted with useNativeDriver which uses the native animation by RCTAnimation.

Components

AnimatedListView

Fade appearance listView. Based on ListView therefore all ListView props can be used.

####API

PropsTypeDescription
initialOpacity[Number]Cell initial opacity, between 0-1
offsetY[Number]Cell Y offset
cellAnimationDelay[Number]Cell animation delay. Multiple cell# * cellAnimationDelay
duration[Number]The animation duration in milliseconds[Number]

FlipAnimatedImage

API
PropsTypeDescription
isSelected[Boolean]The selection state of the component
selectedImage[Image]The image to show when state is selected
unSelectedImage[Image]The image to show when state is unselected
duration[Object]The animation Bounce duration object {bounceOut: [Number], bounceIn: [Number]}
Example
<TouchableOpacity 
    activeOpacity={0.7} 
    onPress={() => this.setState({starIsSelected: !this.state.starIsSelected})} 
    style={{margin: 30}}>
    
    <FlipAnimatedImage style={{justifyContent: 'center', alignItems: 'center'}}
                       isSelected={this.state.starIsSelected}
                       unSelectedImage={require('<SELECTED_IMAGE>')}
                       selectedImage={require('<UNSELECTED_IMAGE>')}
                       duration={{bounceOut: 50, bounceIn: 100}}
    />
</TouchableOpacity>

FAQs

Package last updated on 11 Dec 2016

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