Open pzw224 opened 5 years ago
loadingIndicatorSource is only work on ios. and onError is not work
<PhotoView ref={(ref) => { this.photoView = ref }} source={{ uri: image.url }} loadingIndicatorSource={ImageResource.Other.Default} minimumZoomScale={1} maximumZoomScale={3} androidScaleType="center" resizeMode={Platform.OS === "android" ? "" : "contain"} onError={() => { console.log("I'm error") }} style={{ backgroundColor: colors.text_dark, width: productPresenter.GLOBLEWIDTH, height: productPresenter.GLOBLEHEIGHT - translateOnWidth(68), justifyContent: 'center', alignItems: 'center' }} />
loadingIndicatorSource is only work on ios. and onError is not work
<PhotoView ref={(ref) => { this.photoView = ref }} source={{ uri: image.url }} loadingIndicatorSource={ImageResource.Other.Default} minimumZoomScale={1} maximumZoomScale={3} androidScaleType="center" resizeMode={Platform.OS === "android" ? "" : "contain"} onError={() => { console.log("I'm error") }} style={{ backgroundColor: colors.text_dark, width: productPresenter.GLOBLEWIDTH, height: productPresenter.GLOBLEHEIGHT - translateOnWidth(68), justifyContent: 'center', alignItems: 'center' }} />