Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
MicahDavid opened this issue Jun 13, 2023 · 1 comment

Comments

@MicahDavid
Copy link

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
Copy link
Author

MicahDavid commented Jun 13, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant