Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Flatlist inside ParallaxScroll is not working #47

@seonoh

Description

@seonoh

Issue details

Flatlist inside ParallaxScroll is not working

Steps to reproduce

I hope inset Flatlist in ParallaxScroll renderParallaxBackground but, that is not scroll.
how to solve this problem?

Please specify which versions of the RN and ParallaxScroll

  • react-native 0.61.5
  • react-native-parallax-scroll 1.8.0

Affected platforms

  • Both

Screenshots / Screencast / Code Snippets (Optional)

<ParallaxScroll
        // scrollableComponent={()=>}
        // renderHeader={(animatedValue : any) => <Header animatedValue={animatedValue} />}
        headerHeight={50}
        isHeaderFixed={false}
        parallaxHeight={250}
        renderParallaxBackground={(value: any) => (
          <FlatList
            scrollEnabled={true}
            bounces={false}
            horizontal={true}
            data={this.state.imageList}
            renderItem={this.renderImageItem}
            keyExtractor={(item, index) => index.toString()}
            decelerationRate={'fast'}
            style={{
              width: Dimensions.get('screen').width,
            }}
            snapToAlignment={'start'}
            directionalLockEnabled={false}
            disableIntervalMomentum={true}
            snapToEnd={false}
            snapToInterval={Dimensions.get('screen').width}
            onViewableItemsChanged={this._onViewableItemsChanged}
            viewabilityConfig={this._viewabilityConfig}
            onScroll={Animated.event(
              [
                {
                  nativeEvent: {contentOffset: {y: this.state.imageAnimationValue}},
                },
              ],
              {useNativeDriver: false}, // <-- Add this
            )}
          />
        )}
        // renderParallaxForeground={({animatedValue}) => <Foreground animatedValue={animatedValue} />}
        parallaxBackgroundScrollSpeed={5}
        parallaxForegroundScrollSpeed={2.5}></ParallaxScroll>

Flatlist inside ParallaxScroll is not working
how to solve this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions