bamlab / bamlab/react-native-image-header-scroll-view

render Fixed Foreground problem

Open
#124 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1k
Forks
101
PR merge metrics
No merged PRs in 30d

Description

I used Flat list in the render fixed foreground and in the flat list image scrolling animation is working

(

_renderService(item, index)}
decelerationRate={0.8}
bounce={false}
snapToInterval={width}
onScroll={Animated.event(
[{ nativeEvent: { contentOffset: { x: scrollX } } }],
{ useNativeDriver: false },
)}
/>

{Service
? Service.map((Service, index) => {
let opacity = position.interpolate({
inputRange: [index - 1, index, index + 1],
outputRange: [0.2, 1, 0.2],
extrapolate: 'clamp',
});
return (


);
})
: null}

)}

>

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.