@@ -69,7 +69,8 @@ export default class ImageViewer extends React.Component<Props, State> {
69
69
// 显示动画
70
70
Animated . timing ( this . fadeAnim , {
71
71
toValue : 1 ,
72
- duration : 200
72
+ duration : 200 ,
73
+ useNativeDriver : false
73
74
} ) . start ( ) ;
74
75
}
75
76
}
@@ -109,7 +110,8 @@ export default class ImageViewer extends React.Component<Props, State> {
109
110
// 显示动画
110
111
Animated . timing ( this . fadeAnim , {
111
112
toValue : 1 ,
112
- duration : 200
113
+ duration : 200 ,
114
+ useNativeDriver : false
113
115
} ) . start ( ) ;
114
116
}
115
117
) ;
@@ -304,7 +306,8 @@ export default class ImageViewer extends React.Component<Props, State> {
304
306
this . standardPositionX = this . positionXNumber ;
305
307
Animated . timing ( this . positionX , {
306
308
toValue : this . positionXNumber ,
307
- duration : this . props . pageAnimateTime
309
+ duration : this . props . pageAnimateTime ,
310
+ useNativeDriver : false
308
311
} ) . start ( ) ;
309
312
310
313
const nextIndex = ( this . state . currentShowIndex || 0 ) - 1 ;
@@ -337,7 +340,8 @@ export default class ImageViewer extends React.Component<Props, State> {
337
340
this . standardPositionX = this . positionXNumber ;
338
341
Animated . timing ( this . positionX , {
339
342
toValue : this . positionXNumber ,
340
- duration : this . props . pageAnimateTime
343
+ duration : this . props . pageAnimateTime ,
344
+ useNativeDriver : false
341
345
} ) . start ( ) ;
342
346
343
347
const nextIndex = ( this . state . currentShowIndex || 0 ) + 1 ;
@@ -361,7 +365,8 @@ export default class ImageViewer extends React.Component<Props, State> {
361
365
this . positionXNumber = this . standardPositionX ;
362
366
Animated . timing ( this . positionX , {
363
367
toValue : this . standardPositionX ,
364
- duration : 150
368
+ duration : 150 ,
369
+ useNativeDriver : false
365
370
} ) . start ( ) ;
366
371
}
367
372
0 commit comments