Skip to content

Commit 0295037

Browse files
committed
chore: added required field to Animated.timing options to address warning in react-native@^0.62.0
1 parent 2a209bd commit 0295037

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

datepicker.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,17 @@ class DatePicker extends Component {
6666
this.state.animatedHeight,
6767
{
6868
toValue: height,
69-
duration: duration
69+
duration: duration,
70+
useNativeDriver: false,
7071
}
7172
).start();
7273
} else {
7374
return Animated.timing(
7475
this.state.animatedHeight,
7576
{
7677
toValue: 0,
77-
duration: duration
78+
duration: duration,
79+
useNativeDriver: false,
7880
}
7981
).start(() => {
8082
this.setState({modalVisible: visible});

0 commit comments

Comments
 (0)