alinz / react-native-share-extension

react-native as an engine to drive share extension
MIT License
763 stars 398 forks source link

Share Multiple Images #80

Closed pierretanguay closed 6 years ago

pierretanguay commented 6 years ago

Hello!

I am trying to get the value of multiple images selected with the share-extension (Going to photos selecting 2-3 images and pressing on my share extension)

this.state.value only returns the last image selected. Is there a way to iterate through all the values selected?

Thank you!

pierretanguay commented 6 years ago

Is there any ways to get multiple values when sharing multiple images?

isaachinman commented 6 years ago

@pierretanguay Did you end up finding a solution for this? I am searching for a cross-platform way to accept multi-image share receiving.

pierretanguay commented 6 years ago

@isaachinman I did! There is a pull request created by @arribbar which works perfectly for me. Just change your *.m file from his pull request and it should work for you too. It also fixes the bug of sharing a UIImage from the screenshot editor.

isaachinman commented 6 years ago

@pierretanguay That is awesome! Thank you so much, I will proceed with that fork. You probably just saved me days or weeks of time.

pierretanguay commented 6 years ago

I had the same feeling!

On Mar 22, 2018, at 1:26 PM, Isaac Hinman notifications@github.com wrote:

@pierretanguay https://github.com/pierretanguay That is awesome! Thank you so much, I will proceed with that fork. You probably just saved me days or weeks of time.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/alinz/react-native-share-extension/issues/80#issuecomment-375390187, or mute the thread https://github.com/notifications/unsubscribe-auth/AEgEnA_QFs6FOaLhuaj_l1JZQrFY6YJWks5tg962gaJpZM4Rk8q7.

isaachinman commented 6 years ago

@pierretanguay Did you run into the issue of permissions on iOS in relation to app containers? It seems some people are creating app groups to get around this, but the fork we are both using does not have this by default.

OmarBasem commented 5 years ago

@pierretanguay How did you get it working? I used the .m file from that fork by @arribbar and it still returns only the url of one image.