Skip to content

Commit a693e50

Browse files
committed
fix: avoid useNativeDriver with backgroundColor in RNTester
Copied from: react/react-native@8508da4
1 parent 6511a27 commit a693e50

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

RNTester/js/AnimatedGratuitousApp/AnExSet.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,20 +85,17 @@ class AnExSet extends React.Component<Object, any> {
8585
inputRange: [0, 300], // and interpolate pixel distance
8686
outputRange: [1, 0], // to a fraction.
8787
}),
88-
useNativeDriver: true,
8988
}).start();
9089
},
9190
onPanResponderMove: Animated.event(
9291
[null, {dy: this.state.dismissY}], // track pan gesture
93-
{useNativeDriver: true}
9492
),
9593
onPanResponderRelease: (e, gestureState) => {
9694
if (gestureState.dy > 100) {
9795
this.props.onDismiss(gestureState.vy); // delegates dismiss action to parent
9896
} else {
9997
Animated.spring(this.props.openVal, {
10098
toValue: 1, // animate back open if released early
101-
useNativeDriver: true,
10299
}).start();
103100
}
104101
},

0 commit comments

Comments
 (0)