File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/components/ImageGallery/components Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import React from 'react';
22import { View } from 'react-native' ;
33import Animated , { useAnimatedStyle } from 'react-native-reanimated' ;
44
5- import { vh , vw } from '../../../utils/utils' ;
5+ import { vw } from '../../../utils/utils' ;
66
77import type { ImageStyle , StyleProp } from 'react-native' ;
88
@@ -109,7 +109,8 @@ export const AnimatedGalleryImage: React.FC<Props> = React.memo(
109109 prevProps . shouldRender === nextProps . shouldRender &&
110110 prevProps . photo . uri === nextProps . photo . uri &&
111111 prevProps . previous === nextProps . previous &&
112- prevProps . index === nextProps . index
112+ prevProps . index === nextProps . index &&
113+ prevProps . screenHeight === nextProps . screenHeight
113114 ) {
114115 return true ;
115116 }
You can’t perform that action at this time.
0 commit comments