Answers for "aling image in react native"

0

onPress image react native

//use Touchable Opacity
<TouchableOpacity onPress={()=> alert('image clicked)}>
          <Image source={require('./sampleimage.png')} style = {styles.ImageClass} />
        </TouchableOpacity>
Posted by: Guest on October-20-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language