Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 17158

gestureState and nativeEvent difference

$
0
0

I am trying to use React Native's PanResponder. In its callback functions there are two parameters that can be invoked: event and gestureState. If I log the event.nativeEvent, and the gestureState object there are keys which have the same values (eg. pageX and moveX), and there are different keys. What I don't understand is the reason for using 2 callback parameters and not one object containing all the keys. I'm sure it must have its reasons, but what are those? Can somebody explain it and give some examples?


Viewing all articles
Browse latest Browse all 17158

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>