Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Unable to use Carousel component in renderHeader prop

Open
#53 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
react-native, typescript
Domain
mobile

Research direction

Start by reproducing the example with a Carousel passed to renderHeader, then compare it with the same Carousel passed to renderForeground. Investigate the component behavior exposed by those two props and determine whether horizontal scrolling can work in renderHeader; done means the behavior is fixed or the limitation is clearly documented.

Written by the indexing model from the issue text.

Description

Compatibility with other scroll components

Hi There,

I want to customise renderHeader prop by passing carousel component.
renderHeader={() => <View style={{width: '100%', height:'100%', backgroundColor:'#2E343D'}}> <Carousel ref={(c) => { 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 }) } /> </View>}

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?

Dominant language
TypeScript
Stars
1k
Forks
101
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

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

All issues in bamlab/react-native-image-header-scroll-view

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.