mirror of
https://github.com/status-im/react-native.git
synced 2025-02-04 13:44:04 +00:00
Use native animations in TouchableBounce and TouchableOpacity
Summary:
this brings back the previous commit that had to be reverted due to internal breakages.
original commit: 1bb323e256
Reviewed By: AaaChiuuu
Differential Revision: D4109811
fbshipit-source-id: b50de145eaf6851138429635bc0302518d656b75
This commit is contained in:
parent
d685620f31
commit
8bb707b686
@ -88,6 +88,7 @@ var TouchableBounce = React.createClass({
|
||||
toValue: value,
|
||||
velocity,
|
||||
bounciness,
|
||||
useNativeDriver: true,
|
||||
}).start(callback);
|
||||
},
|
||||
|
||||
|
@ -87,7 +87,7 @@ var TouchableOpacity = React.createClass({
|
||||
setOpacityTo: function(value: number) {
|
||||
Animated.timing(
|
||||
this.state.anim,
|
||||
{toValue: value, duration: 150}
|
||||
{toValue: value, duration: 150, useNativeDriver: true}
|
||||
).start();
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user