react-native-image-viewer
react-native-image-viewer copied to clipboard
ERROR Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method. in ImageViewer
ERROR Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method. in ImageViewer
I have the same issue!!
I'll add some details here.
I am rendering <ImageViewer />
inside a modal window.
<Modal
visible={imageViewerModalVisible}
animationType={"fade"}
transparent={true}
>
<ImageViewer
index={imageViewerIndex}
enableImageZoom={true}
backgroundColor={"rgba(0, 0, 0, .8)"}
enableSwipeDown={true}
onSwipeDown={() => setImageViewerModalVisible(null)}
imageUrls={eventGallery.map((i) => ({ url: i }))}
/>
</Modal>
```