Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

call two functions onpress react native

functionOne(){
// do something
}

functionTwo(){
// do something
}

functionCombined() {
    this.functionOne();
    this.functionTwo();
}  

<TouchableHighlight onPress={() => this.functionCombined()}/>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #call #functions #onpress #react #native
ADD COMMENT
Topic
Name
1+9 =