-
-
Save reime005/ac4962a3208035b0dcdbd3ee24e67a1d to your computer and use it in GitHub Desktop.
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
import { ScrollView } from 'react-native'; | |
const StickyList = () => { | |
return ( | |
<ScrollView | |
style={{ flex: 1, backgroundColor: '#fff' }} | |
stickyHeaderIndices={[0, 3]}> | |
<TextEl>sticky 0</TextEl> | |
<TextEl>not sticky</TextEl> | |
<TextEl>not sticky</TextEl> | |
<TextEl>sticky 1</TextEl> | |
<TextEl>not sticky</TextEl> | |
<TextEl>not sticky</TextEl> | |
<TextEl>not sticky</TextEl> | |
<TextEl>not sticky</TextEl> | |
</ScrollView> | |
); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment