Open bishwajeet-billme opened 4 years ago
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 }} />
Set following properties:
androidScaleType="fitCenter" style={{flex:1}} minimumZoomScale={1}
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 }} />