We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6511a27 commit a693e50Copy full SHA for a693e50
1 file changed
RNTester/js/AnimatedGratuitousApp/AnExSet.js
@@ -85,20 +85,17 @@ class AnExSet extends React.Component<Object, any> {
85
inputRange: [0, 300], // and interpolate pixel distance
86
outputRange: [1, 0], // to a fraction.
87
}),
88
- useNativeDriver: true,
89
}).start();
90
},
91
onPanResponderMove: Animated.event(
92
[null, {dy: this.state.dismissY}], // track pan gesture
93
- {useNativeDriver: true}
94
),
95
onPanResponderRelease: (e, gestureState) => {
96
if (gestureState.dy > 100) {
97
this.props.onDismiss(gestureState.vy); // delegates dismiss action to parent
98
} else {
99
Animated.spring(this.props.openVal, {
100
toValue: 1, // animate back open if released early
101
102
103
}
104
0 commit comments