react native preload image code example
Example 1: react native image
<Image //change imagePath with the real path of your image, for example ./src/image/image.jpg
source={require("imagePath")}
/>
Example 2: onPress image react native
//use Touchable Opacity
<TouchableOpacity onPress={()=> alert('image clicked)}>
<Image source={require('./sampleimage.png')} style = {styles.ImageClass} />
</TouchableOpacity>