The desired behaviour is to pass an argument (text) to the onClick handler to console.log it but it seems that I\'m doing something wrong with the syntax.
If I leave
You should just pass one fat arrow function before calling the function.
onPress= {()=> this.handlePress(param)}