Skip to content

Instantly share code, notes, and snippets.

@reime005
Created December 14, 2020 19:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reime005/42b1b1a24ca0a576e1dd78e6bc868049 to your computer and use it in GitHub Desktop.
Save reime005/42b1b1a24ca0a576e1dd78e6bc868049 to your computer and use it in GitHub Desktop.
import * as RN from 'react-native';
export const SettingsList = () => {
return (
<RN.SectionList
sections={settingsData}
style={{ flex: 1, width: '100%', marginTop: 24 }}
showsVerticalScrollIndicator={false}
bounces={false}
onEndReachedThreshold={0.5}
ItemSeparatorComponent={StyledSearchItemSeparator}
keyExtractor={(it) => it}
renderItem={renderItem}
renderSectionHeader={renderSectionHeader}
/>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment