Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react native scrollview sticky header

<ScrollView
      style={styles.screen}
      stickyHeaderIndices={[0]}
 >
     <View><Text>Hello1</Text></View>
     <View><Text>Hello2</Text></View>
     <View><Text>Hello3</Text></View>
 </ScrollView>
// Show "Hello1" as sticky component
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #react #native #scrollview #sticky #header
ADD COMMENT
Topic
Name
8+7 =