react native how to call multiple functions when onPress is clicked

前端 未结 5 1788
离开以前
离开以前 2021-02-05 05:35

I am trying to call multiple functions when I click onPress using TouchableOpacity

For example:

functionOne(){
// do something
         


        
5条回答
  •  一生所求
    2021-02-05 06:07

    If you want to call a function and then navigate to a screen, then do this way.

     { this.onSubmit(); this.props.navigation.navigate('NextScreen') }}>
    

提交回复
热议问题