Skip to content

Commit e87dfef

Browse files
committed
fix animated image to useNativeDriver
1 parent 77ae92e commit e87dfef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/animatedImage/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class AnimatedImage extends BaseComponent {
8888

8989
onLoad = () => {
9090
this.setState({isLoading: false}, () => {
91-
const animationParams = {toValue: 1, duration: this.props.animationDuration, useNativeDriver: false};
91+
const animationParams = {toValue: 1, duration: this.props.animationDuration, useNativeDriver: true};
9292
Animated.timing(this.state.opacity, animationParams).start();
9393
});
9494
};

0 commit comments

Comments
 (0)