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

pagination not reset when loading new images #141

Open
nicoladj77 opened this issue Apr 14, 2022 · 0 comments
Open

pagination not reset when loading new images #141

nicoladj77 opened this issue Apr 14, 2022 · 0 comments

Comments

@nicoladj77
Copy link

I am using the image slider in an app similar to tinder. The slider holds images, and when you press like or dislike new data is loaded.
The issue is that if I slide to the third image on the first page, when the second sets of images is loaded, the third image is shown, not the first.
This is my setup

const ImageSlider = ({
  images,
  paginationBoxVerticalPadding,
  sliderBoxHeight,
}) => {
  return (
    <View>
      <SliderBox
        sliderBoxHeight={hp(sliderBoxHeight)}
        images={images}
        dotColor={'#FFF'}
        paginationBoxVerticalPadding={hp(paginationBoxVerticalPadding)}
        inactiveDotColor={'rgba(256, 256, 256, 0.5)'}
        ImageComponent={FastImage}
        firstItem={0}
        disableOnPress
      />
    </View>
  );
};
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