meliorence / react-native-image-gallery

Pure JavaScript image gallery component for iOS and Android with high-performance and native feeling in mind
715 stars 298 forks source link

It is possible to save the image on my iPhone/Android ? #130

Open GerardoPM opened 5 years ago

GerardoPM commented 5 years ago

I want to download the image when a long press is detected

mzxyz commented 5 years ago

@GerardoPM I think you can do this with onLongPress and onPageScroll callback.

  1. Get position with onPageScroll, the initial value should be 0. With position you can get the image which you want to save.

  2. Use onLongPress to trigger the save action if you like.

  3. Refer to the official document how to save the image file to local gallery