Skip to content

Commit f42e4fc

Browse files
committed
Trying to fix 1735 (#2079)
1 parent 5d4e149 commit f42e4fc

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/components/animatedImage/index.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22
import _ from 'lodash';
33
import PropTypes from 'prop-types';
44
import React from 'react';
5-
import {Animated, View, StyleSheet} from 'react-native';
5+
import {Animated, StyleSheet} from 'react-native';
6+
import View from '../../components/view';
67
import Image from '../../components/image';
78
import {BaseComponent} from '../../commons';
89

9-
const UIAnimatedImage = Animated.createAnimatedComponent(Image);
10-
1110
/**
1211
* @description: Image component that fades-in the image with animation once it's loaded
1312
* @extends: Animated.Image
@@ -55,10 +54,10 @@ class AnimatedImage extends BaseComponent {
5554
render() {
5655
const {containerStyle, source, loader, style, testID, ...others} = this.props;
5756
return (
58-
<View style={containerStyle}>
59-
<UIAnimatedImage
57+
<View animated style={[{opacity: this.state.opacity}, containerStyle]}>
58+
<Image
6059
{...others}
61-
style={[{opacity: this.state.opacity}, style]}
60+
style={style}
6261
source={source}
6362
onLoad={this.onLoad}
6463
testID={testID}

0 commit comments

Comments
 (0)