Created
June 23, 2022 08:30
-
-
Save socialwell-demos/2a138e0665e53b0598bc141406e9fbf2 to your computer and use it in GitHub Desktop.
React Native ScrollView git example in react.js
This file contains 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
<ScrollView | |
horizontal={true} | |
nestedScrollEnabled={true} | |
style={{ backgroundColor: '#fff', marginTop: 4,marginLeft:20 }} | |
> | |
<View style={{ flexDirection: 'column' }}> | |
<TableHeader /> | |
<FlatList | |
data={mockDB} | |
renderItem={renderUsersItem} | |
keyExtractor={item => item.id} | |
extraData={selectedId} | |
style={{ paddingBottom: 21, backgroundColor: '#fff' }} | |
/> | |
</View> | |
</ScrollView> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment