How does Animated.Event work in React Native?

后端 未结 3 886
长发绾君心
长发绾君心 2021-02-04 06:38

I\'m I understanding it correctly ? Does this two set of code meant the same thing ?Does it have any difference in performance or reliability ?



        
3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-04 07:11

    If you want to handle the scroll you can use it this way:

    handleScroll = (event) => {
        //custom actions
    }
    
     {
           this.handleScroll(event);
       }})
    }>
    
    

提交回复
热议问题