Created
July 25, 2025 15:02
-
-
Save gigobyte/b20efeca86e28eed8f34a2f3b4f7c2af to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Pressable, Text } from 'react-native' | |
| import { | |
| Pressable as RNGHPressable, | |
| Text as RNGHText, | |
| } from 'react-native-gesture-handler' | |
| function Reproduction() { | |
| return ( | |
| <> | |
| <Pressable | |
| style={{ width: 100, height: 100, backgroundColor: 'red' }} | |
| onPress={() => console.log('RN: Pressable onPress')} | |
| > | |
| <Text> | |
| Outer{' '} | |
| <Text onPress={() => console.log('RN: Inner onPress')}>Inner</Text> | |
| </Text> | |
| </Pressable> | |
| <RNGHPressable | |
| style={{ width: 100, height: 100, backgroundColor: 'pink' }} | |
| onPress={() => console.log('RNGH: Pressable onPress')} | |
| > | |
| <RNGHText> | |
| Outer{' '} | |
| <Text onPress={() => console.log('RNGH: Inner onPress')}>Inner</Text> | |
| </RNGHText> | |
| </RNGHPressable> | |
| </> | |
| ) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment