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 in ios image is not open proper width of the image. #196

Open
bishwajeet-billme opened this issue Nov 20, 2019 · 1 comment

Comments

@bishwajeet-billme
Copy link

In ios device, image is not open proper image width format.

<PhotoView
source={{ uri: props.uri }}
minimumZoomScale={1}
//scale={2.5}
//onProgress={()=>console.log("Progress ....")}
// loadingIndicatorSource={() => <ActivityIndicator animating={true}
// size="large" color="#0000ff" />}
maximumZoomScale={10}
onLoad={() => props.onLoading()}
onLoadEnd={() => props.onLoadingEnd()}
style={{
borderWidth:1,
borderColor:'red',
width:null,
height: props.height / props.width * Dimensions.get("window").width
//height:props.height
}} />

@anilios
Copy link

anilios commented Mar 3, 2020

Set following properties:

androidScaleType="fitCenter"
style={{flex:1}}
minimumZoomScale={1}

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

2 participants