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

Unable to use Carousel component in renderHeader prop

Open
#53 3 comments 1 reaction 0 assignees View on GitHub
Compatibility with other scroll components
Dominant language
TypeScript
Stars
1k
Forks
101
PR merge metrics
No merged PRs in 30d

Description

Hi There,

I want to customise renderHeader prop by passing carousel component.
`
renderHeader={() =>
{ this._carousel = c; }}
data={this.state.entries}
renderItem={this._renderItem}
sliderWidth={Dimensions.get('window').width}
itemWidth={Dimensions.get('window').width}
onSnapToItem={(index) => this.setState({ activeSlide: index }) }
/>
}
`

But the horizontal scroll doesn't work in it. However if pass the same carousel component in renderForeground prop then it works.

Could you please advice on it?

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.