react-native-photo-view icon indicating copy to clipboard operation
react-native-photo-view copied to clipboard

how can i show loading & error image now?

Open pzw224 opened this issue 7 years ago • 0 comments

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' }} />

pzw224 avatar Sep 04 '18 16:09 pzw224