xxxxxxxxxx
<Image style={styles.imageStyle} source={{uri: this.props.url !=="" ? this.props.url : undefined }} />
xxxxxxxxxx
if source.uri:
# source.uri is not an empty string, proceed with the desired action
# ...
else:
# source.uri is an empty string, handle the empty case
# ...