constelation / monorepo

Mono repo for constelation's Components, functions, and CONSTANTS
https://constelation.github.io/monorepo/
MIT License
12 stars 3 forks source link

Pan events #82

Open kylpo opened 7 years ago

kylpo commented 7 years ago

copy/paste of notes I've taken already:

View, Text, TextInput (https://github.com/facebook/react-native/blob/master/Libraries/Components/TextInput/TextInput.js#L178) have all panResponder events Image doesn't have pan events (and no hitSlop)

ScrollView, ListView, RecyclerView have some special events from https://github.com/facebook/react-native/blob/master/Libraries/Components/ScrollResponder.js

https://github.com/facebook/react-native/blob/master/Libraries/Components/View/View.js#L278 mentions ScrollResponder and ResponderEventPlugin

Read through https://github.com/facebook/react-native/blob/3683beb88ab3233038ac32b9c33112d537478088/Libraries/Renderer/src/renderers/shared/stack/event/eventPlugins/ResponderEventPlugin.js#L140

Also read through https://github.com/facebook/react-native/blob/fb4f71f4ac9c486b5a5c46109fa5ecf8cb4060e8/Libraries/Interaction/PanResponder.js

And this doc https://github.com/facebook/react-native/blob/4344e064e70cdf20573ac82d565a178b1be66897/docs/GestureResponderSystem.md

And see responder events listed here https://github.com/facebook/react-native/blob/3683beb88ab3233038ac32b9c33112d537478088/Libraries/Renderer/src/renderers/shared/stack/event/eventPlugins/ResponderEventPlugin.js#L104