react-native-share-menu icon indicating copy to clipboard operation
react-native-share-menu copied to clipboard

fix multiple items ios

Open RZulfikri opened this issue 4 years ago • 2 comments

Hi, I'm trying to fix this issue https://github.com/meedan/react-native-share-menu/issues/77 based on the code I check it will return the first item using a callback. In my case, I'm trying to share multiple messages (text) from WhatsApp but I always get one message only.

so in this code, I add a code to wait until all item provider finishes and pass to the callback. so it might have changes on return data()

before:

{data: "", mimetype: ""}

now:

[{data: "", mimetype: ""}]

hope it helps, thank you.

RZulfikri avatar May 19 '21 22:05 RZulfikri

@RZulfikri I have a PR opened that fixes this - https://github.com/meedan/react-native-share-menu/pull/119

vstoyanoff avatar May 28 '21 11:05 vstoyanoff

If you need this feature right now, check this: https://github.com/meedan/react-native-share-menu/pull/158

flogy avatar Nov 02 '21 15:11 flogy