Skip to content

Instantly share code, notes, and snippets.

@gigobyte
Created July 25, 2025 15:02
Show Gist options
  • Select an option

  • Save gigobyte/b20efeca86e28eed8f34a2f3b4f7c2af to your computer and use it in GitHub Desktop.

Select an option

Save gigobyte/b20efeca86e28eed8f34a2f3b4f7c2af to your computer and use it in GitHub Desktop.
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