ascoders / react-native-image-viewer

🚀 tiny & fast lib for react native image viewer pan and zoom
MIT License
2.44k stars 578 forks source link

Start image preview from clicked image #349

Open 4spen opened 4 years ago

4spen commented 4 years ago

Is it possible to start image preview from clicked photo?

Current behaviour: if I have array of three images and I click second or third image, preview starts from first array item.

Expected behaviour: Start preview from clicked image - second or third.

If possible any example would be appreciated.

Kachanov-dev commented 4 years ago

You need to pass the index of the picture => index={1}. You will immediately go to 2 element

polcats commented 3 years ago

This is exactly what I needed. Thanks!