Reverted commit D4099819
Summary: Now that native animations for opacity and springs have landed in both iOS and Android, we can enable native animations both for TouchableBounce and TouchableOpacity. Closes https://github.com/facebook/react-native/pull/10583 Differential Revision: D4099819 Pulled By: jingc fbshipit-source-id: de70f8732b84d4caf0e4adfb2ad0e95b3de5da0f
This commit is contained in:
parent
cd97128ba3
commit
426e66cfe6
|
@ -88,7 +88,6 @@ 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, useNativeDriver: true}
|
||||
{toValue: value, duration: 150}
|
||||
).start();
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue