Skip to content
This repository was archived by the owner on Jul 30, 2020. It is now read-only.

add Text as valid target for press events #4

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ const eventMap = {
'TouchableOpacity',
'TouchableWithoutFeedback',
'TouchableNativeFeedback',
'Text',
],
},
press: {
Expand All @@ -100,6 +101,7 @@ const eventMap = {
'TouchableOpacity',
'TouchableWithoutFeedback',
'TouchableNativeFeedback',
'Text',
],
},
pressIn: {
Expand All @@ -112,6 +114,7 @@ const eventMap = {
'TouchableWithoutFeedback',
'TouchableNativeFeedback',
'YellowBoxPressable',
'Text',
],
},
pressOut: {
Expand All @@ -124,6 +127,7 @@ const eventMap = {
'TouchableWithoutFeedback',
'TouchableNativeFeedback',
'YellowBoxPressable',
'Text',
],
},
momentumScrollBegin: {
Expand Down