mirror of
https://github.com/zhigang1992/react-native-popover-view.git
synced 2026-01-12 22:50:38 +08:00
Restore to Initial Animation
This undoes an odd but unnecessary change I made.
This commit is contained in:
16
Popover.js
16
Popover.js
@@ -273,24 +273,20 @@ var Popover = React.createClass({
|
||||
useNativeDriver: true
|
||||
}
|
||||
|
||||
let animations = [
|
||||
Animated.parallel([
|
||||
Animated.timing(values.fade, {
|
||||
toValue: show ? 1 : 0,
|
||||
...commonConfig,
|
||||
}),
|
||||
Animated.timing(values.translate, {
|
||||
toValue: show ? new Point(0, 0) : translateOrigin,
|
||||
...commonConfig,
|
||||
}),
|
||||
Animated.timing(values.scale, {
|
||||
toValue: show ? 1 : 0,
|
||||
...commonConfig,
|
||||
})
|
||||
];
|
||||
|
||||
//if (this.props.fromRect)
|
||||
animations.push(Animated.timing(values.translate, {
|
||||
toValue: show ? new Point(0, 0) : translateOrigin,
|
||||
...commonConfig,
|
||||
}));
|
||||
|
||||
Animated.parallel(animations).start(doneCallback);
|
||||
]).start(doneCallback);
|
||||
},
|
||||
_getDefaultAnimatedStyles() {
|
||||
// If there's a custom animation handler,
|
||||
|
||||
Reference in New Issue
Block a user