Skip to content

Commit ecafdec

Browse files
tiensonqinJames Ide
authored andcommitted
[TouchableBounce] Use native animations only on Android
Native springs are not supported on iOS yet. Waiting for that PR upstream to be rebased, reviewed, and merged.
1 parent 6fd3cd3 commit ecafdec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Libraries/Components/Touchable/TouchableBounce.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ var TouchableBounce = React.createClass({
8888
toValue: value,
8989
velocity,
9090
bounciness,
91-
useNativeDriver: true,
91+
useNativeDriver: Platform.OS === 'android',
9292
}).start(callback);
9393
},
9494

0 commit comments

Comments
 (0)