@@ -77,6 +77,8 @@ export default class Dropdown extends PureComponent {
77
77
'landscape-left' ,
78
78
'landscape-right' ,
79
79
] ,
80
+
81
+ useNativeDriver : false ,
80
82
} ;
81
83
82
84
static propTypes = {
@@ -150,6 +152,8 @@ export default class Dropdown extends PureComponent {
150
152
pickerStyle : ( ViewPropTypes || View . propTypes ) . style ,
151
153
152
154
supportedOrientations : PropTypes . arrayOf ( PropTypes . string ) ,
155
+
156
+ useNativeDriver : PropTypes . bool ,
153
157
} ;
154
158
155
159
constructor ( props ) {
@@ -210,6 +214,7 @@ export default class Dropdown extends PureComponent {
210
214
dropdownMargins : { min : minMargin , max : maxMargin } ,
211
215
animationDuration,
212
216
absoluteRTLLayout,
217
+ useNativeDriver,
213
218
} = this . props ;
214
219
215
220
if ( disabled ) {
@@ -295,7 +300,7 @@ export default class Dropdown extends PureComponent {
295
300
. timing ( opacity , {
296
301
duration : animationDuration ,
297
302
toValue : 1 ,
298
- useNativeDriver : true ,
303
+ useNativeDriver,
299
304
} )
300
305
. start ( ( ) => {
301
306
if ( this . mounted && 'ios' === Platform . OS ) {
@@ -312,14 +317,14 @@ export default class Dropdown extends PureComponent {
312
317
}
313
318
314
319
onClose ( value = this . state . value ) {
315
- let { onBlur, animationDuration } = this . props ;
320
+ let { onBlur, animationDuration, useNativeDriver } = this . props ;
316
321
let { opacity } = this . state ;
317
322
318
323
Animated
319
324
. timing ( opacity , {
320
325
duration : animationDuration ,
321
326
toValue : 0 ,
322
- useNativeDriver : true ,
327
+ useNativeDriver,
323
328
} )
324
329
. start ( ( ) => {
325
330
this . focused = false ;
0 commit comments