Open manjeets12 opened 4 years ago
"react-native": "^0.59.5" "react-native-photo-view": "^1.5.2"
imageLoadError =()=>{ } <PhotoView loadingIndicatorSource={require(PATH_TO_LOCALE_IMAGE)} source={{ uri: IMAGE_URL }} minimumZoomScale={0.95} maximumZoomScale={4} scale={5} androidScaleType="fitCenter" // onLoad={() => console.log('Image loaded!')} onError={this.imageLoadError} style={styles.image} />
Everything looks fine in debug mode but in android release build default image keep rotating until actual image loads.
actually following code seems to be reason for that, It will be great if there is some options to disable that default rotation animation
public void setLoadingIndicatorSource(@Nullable String name, ResourceDrawableIdHelper resourceDrawableIdHelper) { Drawable drawable = resourceDrawableIdHelper.getResourceDrawable(getContext(), name); mLoadingImageDrawable = drawable != null ? (Drawable) new AutoRotateDrawable(drawable, 1000) : null; mIsDirty = true; }
"react-native": "^0.59.5" "react-native-photo-view": "^1.5.2"
Everything looks fine in debug mode but in android release build default image keep rotating until actual image loads.
actually following code seems to be reason for that, It will be great if there is some options to disable that default rotation animation