RFC: react-native 0.63 -- Pressable #1222
Labels
enhancement
feature request
plat: react-native
Primarily affects react-native (iOS / Android)
question
react-native 0.63 is out, and one of the key changes is that RN has a new component/model for pressable type elements.
As I understand it, this API model is intended to replace all the
Touchable*
family of APIs -- and indeed it appears to have several high level advantages that I see directly:onPressIn
/onPressOut
styling callbacks Add onPressIn and onPressOut to View #1135 -- this was a clunky issue that we had to implement when using RX in our app, so it'd be great to be able to delete that state-tracking code.onLongPress
References
Questions
Touchable
for the native-common interface?Strategies
Prerequisite: Provide a Polyfill implementing some or all of Pressable or drop RN versions
A. Switch all use cases of
Touchable
toPressable
in native-common --RX.Button
could be an alias / wrapper directly forRN.Pressable
?B. Expose
RX.Pressable
as a free standing component? -- Keep the rest of RX's native-common usingTouchable
?C. Suggestions?
The text was updated successfully, but these errors were encountered: