This repository was archived by the owner on Aug 29, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 63
This repository was archived by the owner on Aug 29, 2025. It is now read-only.
Flatlist inside ParallaxScroll is not working #47
Copy link
Copy link
Open
Description
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
Labels
No labels