0.0.8 • Published 9 years ago

react-native-animation-library v0.0.8

Weekly downloads
55
License
-
Repository
-
Last release
9 years ago

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
initialOpacityNumberCell initial opacity, between 0-1
offsetYNumberCell Y offset
cellAnimationDelayNumberCell animation delay. Multiple cell# * cellAnimationDelay
durationNumberThe animation duration in milliseconds[Number]

FlipAnimatedImage

API

PropsTypeDescription
isSelectedBooleanThe selection state of the component
selectedImageImageThe image to show when state is selected
unSelectedImageImageThe image to show when state is unselected
durationObjectThe 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>
0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago