how to give onPress on image react native code example
Example: onPress image react native
//use Touchable Opacity
<TouchableOpacity onPress={()=> alert('image clicked)}>
<Image source={require('./sampleimage.png')} style = {styles.ImageClass} />
</TouchableOpacity>