react-native-carousel icon indicating copy to clipboard operation
react-native-carousel copied to clipboard

Current slide selector

Open krishbhattacharyya opened this issue 9 years ago • 1 comments

This is not an issue, a suggestion please add a current slide selector. Where we can set the current slide on initialization or later.

krishbhattacharyya avatar Oct 18 '16 13:10 krishbhattacharyya

I think you can already do that. There's a props for Carousel called initialPage, so if you want to set current slide to 1 upon initialization, just do: <Carousel initialPage={1} animate={false} onPageChange={this.handlePageChange.bind(this)}/> The problem is the documentation did not mention this initialPage props.

xiaoyunyang avatar Jul 24 '17 07:07 xiaoyunyang