react-native-swipe-modal-up-down
react-native-swipe-modal-up-down copied to clipboard
ReactImageView: Image source "null" doesn't exist - after upgrading React Native to 0.71.10
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
)
}
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?