Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hkung77 opened this issue Nov 14, 2017 · 0 comments
Open

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

hkung77 opened this issue Nov 14, 2017 · 0 comments

Comments

@hkung77
Copy link

hkung77 commented Nov 14, 2017

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);
   }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant