react-native-image-viewer icon indicating copy to clipboard operation
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

Open gerfisher opened this issue 3 years ago • 2 comments

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

gerfisher avatar Apr 11 '21 11:04 gerfisher

I have the same issue!!

crventra941 avatar Apr 28 '21 22:04 crventra941

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>
        ```

bekatru avatar Sep 08 '21 07:09 bekatru