Skip to content
This repository was archived by the owner on Sep 28, 2021. It is now read-only.

Commit 4fa10a0

Browse files
authored
Do not break compatibility with existed implementation
useNativeDriver: false
1 parent d19ed21 commit 4fa10a0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/image-viewer.component.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export default class ImageViewer extends React.Component<Props, State> {
7070
Animated.timing(this.fadeAnim, {
7171
toValue: 1,
7272
duration: 200,
73-
useNativeDriver: true
73+
useNativeDriver: false
7474
}).start();
7575
}
7676
}
@@ -111,7 +111,7 @@ export default class ImageViewer extends React.Component<Props, State> {
111111
Animated.timing(this.fadeAnim, {
112112
toValue: 1,
113113
duration: 200,
114-
useNativeDriver: true
114+
useNativeDriver: false
115115
}).start();
116116
}
117117
);
@@ -307,7 +307,7 @@ export default class ImageViewer extends React.Component<Props, State> {
307307
Animated.timing(this.positionX, {
308308
toValue: this.positionXNumber,
309309
duration: this.props.pageAnimateTime,
310-
useNativeDriver: true
310+
useNativeDriver: false
311311
}).start();
312312

313313
const nextIndex = (this.state.currentShowIndex || 0) - 1;
@@ -341,7 +341,7 @@ export default class ImageViewer extends React.Component<Props, State> {
341341
Animated.timing(this.positionX, {
342342
toValue: this.positionXNumber,
343343
duration: this.props.pageAnimateTime,
344-
useNativeDriver: true
344+
useNativeDriver: false
345345
}).start();
346346

347347
const nextIndex = (this.state.currentShowIndex || 0) + 1;
@@ -366,7 +366,7 @@ export default class ImageViewer extends React.Component<Props, State> {
366366
Animated.timing(this.positionX, {
367367
toValue: this.standardPositionX,
368368
duration: 150,
369-
useNativeDriver: true
369+
useNativeDriver: false
370370
}).start();
371371
}
372372

0 commit comments

Comments
 (0)