Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React-native-photo-view-ex scaling issue #27

Open
KamranZafar19 opened this issue Apr 21, 2022 · 0 comments
Open

React-native-photo-view-ex scaling issue #27

KamranZafar19 opened this issue Apr 21, 2022 · 0 comments

Comments

@KamranZafar19
Copy link

I am using React-native-photo-view-ex for resizing the images with a pinch for picture editing. when I resize the image the flex-box size does not change with the image size and when I added a new item for example text or image the previously resized image flex-box focused and resized the flex-box size and the position of the image will be changed. Here is my code
{imageArray &&
imageArray.map((item, index) => {
return (
<component.PinchZoomView
minScale={0.1}
maxScale={5}
scale={item.scale}
translateX={item.translateX}
translateY={item.translateY}
data={value =>
modifyValues(value, item.layer, item.key)
}
key={index}
style={[
styles.pinchImagePosition,
{
zIndex: item.key,
},
]}>
<PhotoView
source={{uri: item.editImage}}
key={index}
minimumZoomScale={0.1}
maximumZoomScale={5}
onScale={e =>
modifyScaling(e.nativeEvent, item.layer)
}
resizeMode="contain"
style={[styles.resizeImageWrapper]}
/>
</component.PinchZoomView>
);
})}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant