react-native-parallax-scroll-view icon indicating copy to clipboard operation
react-native-parallax-scroll-view copied to clipboard

ListView renderSectionHeader

Open tanpuer opened this issue 9 years ago • 3 comments

First,thanks for react-native-parallax-scroll-view. It really helps me a lot.

I found that renderSectionHeader is not working. I want a fixed header in the listview. Can you give me some suggestion?

<ListView ref="ListView" style={styles.container} dataSource={ this.state.dataSource } renderRow={(rowData) => ( <View key={rowData} style={ styles.row }> <Text style={ styles.rowText }> { rowData } </Text> </View> )} renderSectionHeader={this.renderHeader} enableEmptySections={true}

            renderScrollComponent={props => (
                <ParallaxScrollView
                    onScroll={onScroll}

                    headerBackgroundColor="#FFFFFF"
                    stickyHeaderHeight={ STICKY_HEADER_HEIGHT }
                    parallaxHeaderHeight={ PARALLAX_HEADER_HEIGHT }
                    backgroundSpeed={10}
                    backgroundColor="white"
                   .....

tanpuer avatar Nov 09 '16 04:11 tanpuer

another question Is it compatible with react-native-scrollable-tab-view

tanpuer avatar Nov 09 '16 05:11 tanpuer

I have not been able to get it to work properly with scrollable-tab-view

mschipperheyn avatar Nov 10 '16 16:11 mschipperheyn

ListContainer in Facebook f8 is the exactly component I want. It is similar with the component in issue 39 https://github.com/jaysoo/react-native-parallax-scroll-view/issues/39. But it is difficult for me to override it . Can you have a try?

tanpuer avatar Nov 14 '16 10:11 tanpuer