react-native-image-modal icon indicating copy to clipboard operation
react-native-image-modal copied to clipboard

modalImageStyle doesn't works

Open caiqueex opened this issue 2 years ago • 0 comments

hello guys,

my code: <ImageModal resizeMode="cover" modalImageResizeMode="contain" overlayBackgroundColor={colors.black} imageBackgroundColor={colors.primary} style={{ width: 45, height: 45 }} modalImageStyle={{ width: 800, height: 800 }} source={ uri ? { uri: uri } : require('@assets/images/without-user-profile.jpeg') } onLoad={() => setShowShimmer(true)} />

what's happening: my image has 45px of width and height when is outside modal, when I click at the image, it does not open with 800px like I put in modalImageStyle, it continues with 45px, but stretched

caiqueex avatar Jan 26 '23 17:01 caiqueex