react-native-image-gallery
react-native-image-gallery copied to clipboard
set initialPage
when I set the initialPage,it will go wrong that show scrollToIndex out of range : undefined vs -1
You need to pass an integer to the initialPage prop , where that integer is the index of the image you want to display in the images prop array.
when i use this option with number > 12 Gallery freeze and not open the right element.
For example i have a list of 30 thumbnails, on click on thumbnail it open a Modal with Gallery , initalPage is set to the index of the clicked thumbnail. when index > 12 ( approximatly ) it dont work. it open a previous image and cannot zoom, cannot go to left and right. IF i close the modal and click a thumb with index < 12 it work
@alainib what version are you using? Try using version 2.1.1 that I know used to work well. You might be interested in the discussion on issue #20 Edit: 2.1.4 should be quite OK as well. The braking changes were done in 2.1.5
thanks vbuch. yes 2.1.4 work well, i fixed version to this ;)