alwx / react-native-photo-view

Pinch-to-zoom view for React Native (both iOS and Android)
MIT License
815 stars 434 forks source link

how can i show loading & error image now? #173

Open pzw224 opened 5 years ago

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