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

Commit 0a9df86

Browse files
mcgloneleviROOTbcarroll22
authored andcommitted
fix: add Text as valid target for press events
fixes issue #3
1 parent baf59e4 commit 0a9df86

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/events.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ const eventMap = {
8888
'TouchableOpacity',
8989
'TouchableWithoutFeedback',
9090
'TouchableNativeFeedback',
91+
'Text',
9192
],
9293
},
9394
press: {
@@ -100,6 +101,7 @@ const eventMap = {
100101
'TouchableOpacity',
101102
'TouchableWithoutFeedback',
102103
'TouchableNativeFeedback',
104+
'Text',
103105
],
104106
},
105107
pressIn: {
@@ -112,6 +114,7 @@ const eventMap = {
112114
'TouchableWithoutFeedback',
113115
'TouchableNativeFeedback',
114116
'YellowBoxPressable',
117+
'Text',
115118
],
116119
},
117120
pressOut: {
@@ -124,6 +127,7 @@ const eventMap = {
124127
'TouchableWithoutFeedback',
125128
'TouchableNativeFeedback',
126129
'YellowBoxPressable',
130+
'Text',
127131
],
128132
},
129133
momentumScrollBegin: {

0 commit comments

Comments
 (0)