[change] Add Pressable and replace Touchables

Port and rewrite "Pressability" from React Native as "PressResponder". This
integrates a press target with the responder system on web. It avoids
performing layout measurement during gestures by eschewing React Native's
iOS-like UX in favor of expected Web UX: a press target will look pressed until
the pointer is released, even if the pointer has moved outside the bounding
rect of the target.

The PressResponder is used to reimplement the existing Touchables. It's
expected that they will eventually be removed in favor of Pressable.

Fix #1583
Fix #1564
Fix #1534
Fix #1419
Fix #1219
Fix #1166
This commit is contained in:
Nicolas Gallagher
2020-04-11 20:01:35 -07:00
parent 7e724b279d
commit 88f5dedffd
25 changed files with 1495 additions and 930 deletions
@@ -33,6 +33,7 @@ module.exports = {
Picker: true,
PixelRatio: true,
Platform: true,
Pressable: true,
ProgressBar: true,
RefreshControl: true,
SafeAreaView: true,