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

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

Open hkung77 opened this issue 8 years ago • 0 comments

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);
   }

hkung77 avatar Nov 14 '17 01:11 hkung77