Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

onPress image react native

//use Touchable Opacity
<TouchableOpacity onPress={()=> alert('image clicked)}>
          <Image source={require('./sampleimage.png')} style = {styles.ImageClass} />
        </TouchableOpacity>
 
PREVIOUS NEXT
Tagged: #onPress #image #react #native
ADD COMMENT
Topic
Name
3+1 =