Skip to content

Doesn't render with correct InitialPage when greater than 0. #85

@hkung77

Description

@hkung77

I'm on React 16 and react native 48.

Passing an initialPage but it doesn't seem to be working anymore.
Only occurring on IOS. Android seems fine.

I was able to do a workaround by wrapping the scrollToPage within a setTimeOut.

  if (Platform.OS === 'ios') {
     setTimeout(() => {
       this.carousel.refs.pager.scrollToPage(this.props.initialPage, false);
     }, 0);
   }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions