Conditional Image Source

suggest change
<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.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


Images:
*Conditional Image Source

Table Of Contents