2.0.3 • Published 9 years ago

react-native-animatable-overlay v2.0.3

Weekly downloads
1
License
ISC
Repository
github
Last release
9 years ago

react-native-animatable-overlay

Installation

npm install --save react-native-animatable-overlay

Animation

动画借用了 react-native-animatable

为了 API 的优雅,我们把 animation 改成了 name,可用的动画属性如下:

PropDefaultTypeDescription
nameNonestringName of the animation.
duration1000numberFor how long the animation will run (milliseconds).
delay0numberOptionally delay animation (milliseconds).
directionnormalstringDirection of animation, especially useful for repeating animations. Valid values: normal, reverse, alternate, alternate-reverse.
easingease-in-outstringTiming function for the animation. Valid values: linear, ease, ease-in, ease-out, ease-in-out.

Example

<Overlay
  style={{backgroundColor: ''}}
  activeOpacity={1}
  statusBarAutoHidden={true}
  visible={this.state.visible}
  onPress={() => {
    this.setState({
      visible: false
    })
  }}
  showAnimation={{
    name: 'fadeIn'
  }}
  hideAnimation={{
    name: 'fadeOut'
  }}
>
  {content}
</Overlay>
2.0.3

9 years ago

2.0.2

9 years ago

2.0.1

9 years ago

2.0.0

9 years ago

1.0.0

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago