Horje

CONDITIONAL image source - Images - React Native
Learn
React Native - Images - Conditional image source
Conditional Image Source
<Image style={[this.props.imageStyle]}
        source={this.props.imagePath
        ? this.props.imagePath
        : require('../theme/images/resource.png')}
    />

If the path is available in imagePath then it will be assigned to source else the default image path will be assigned.

Read Article
https://develop.horje.com/learn/1434/reference