Find your content:

Search form

You are here

pass parameter onpress react native

 
Share

Use the arrow function to pass the parameter in onPress

<TouchableOpacity onPress={() => this.function1('param')}  >
<Text>Click</Text>
</TouchableOpacity>

My Block Status

My Block Content