Created
August 11, 2025 10:32
-
-
Save gigobyte/56574a3b2f95223f5bf40fb5b2d43efd 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 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