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