Skip to content

Instantly share code, notes, and snippets.

@gigobyte
Created August 11, 2025 10:32
Show Gist options
  • Select an option

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

Select an option

Save gigobyte/56574a3b2f95223f5bf40fb5b2d43efd to your computer and use it in GitHub Desktop.
import { Pressable as RNPressable, Text } from 'react-native'
import { FlatList, Pressable } from 'react-native-gesture-handler'
function TestComponent() {
return (
<>
<Text>RN</Text>
<FlatList
horizontal
data={[1, 2, 3, 4, 5]}
renderItem={() => (
<RNPressable
style={{
borderWidth: 5,
width: 50,
height: 50,
borderColor: 'black',
}}
/>
)}
/>
<Text>RNGH</Text>
<FlatList
horizontal
data={[1, 2, 3, 4, 5]}
renderItem={() => (
<Pressable
style={{
borderWidth: 5,
width: 50,
height: 50,
borderColor: 'blue',
}}
/>
)}
/>
</>
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment