remove react memo from urlImage
This commit is contained in:
parent
0c14716815
commit
251223a0c9
|
@ -52,18 +52,13 @@ const styles = StyleSheet.create({
|
|||
imageWithoutContent: {
|
||||
borderRadius: 4
|
||||
},
|
||||
activityPosition: {
|
||||
zIndex: 2,
|
||||
position: 'absolute'
|
||||
},
|
||||
loading: {
|
||||
height: 0,
|
||||
borderWidth: 0
|
||||
}
|
||||
});
|
||||
|
||||
const UrlImage = React.memo(
|
||||
({
|
||||
const UrlImage = ({
|
||||
image,
|
||||
setImageLoadedState,
|
||||
hasContent,
|
||||
|
@ -93,9 +88,7 @@ const UrlImage = React.memo(
|
|||
/>
|
||||
</>
|
||||
);
|
||||
},
|
||||
(prevProps, nextProps) => prevProps.image === nextProps.image && prevProps.imageLoadedState === nextProps.imageLoadedState
|
||||
);
|
||||
};
|
||||
|
||||
const UrlContent = React.memo(
|
||||
({ title, description, theme }: { title: string; description: string; theme: TSupportedThemes }) => (
|
||||
|
|
Loading…
Reference in New Issue