react-native-swipe-modal-up-down icon indicating copy to clipboard operation
react-native-swipe-modal-up-down copied to clipboard

ReactImageView: Image source "null" doesn't exist - after upgrading React Native to 0.71.10

Open MicahDavid opened this issue 2 years ago • 1 comments

After upgrading to Rect Native 0.71.10, I was receiving the following warning from the swipe modal:

ReactImageView: Image source "null" doesn't exist

This is occuring when the Image Background is null.

Although annoying the warning seemed harmless. This was my simple work around edit inside the modal index.js code:

            {
              props.ImageBackgroundModal ? (
                  <ImageBackground
                      source={props.ImageBackgroundModal && props.ImageBackgroundModal}
                      style={styles.ImageBackground}
                      imageStyle={
                        props.ImageBackgroundModalStyle &&
                        props.ImageBackgroundModalStyle
                      }
                  >
                    {props.ContentModal}
                  </ImageBackground>
              ) : (
                  props.ContentModal
              )
            }

Screen Shot 2023-06-13 at 6 02 39 PM

MicahDavid avatar Jun 13 '23 22:06 MicahDavid

I thought my easy edit worked, but I was wrong. Without the <ImageBackground> I wasn't able to scroll the content. I tried using a <View> and that didn't work either. I'm sure there is an easy solution?

MicahDavid avatar Jun 13 '23 22:06 MicahDavid