[iOS][ActionSheetIOS] Url is not shared when share from copy
See original GitHub issueDescription
Copy option in ActionSheetIOS#showShareActionSheetWithOptions()
won’t share url and only share message when passing options with url
and message
.
when passing options like below
{
url: "https://some.url.com",
message: "message for share"
}
and click “Copy”, it will only copy “message for share” and not including url.
This occurs every time in simulator (iOS13.5 iPhone11) and in real device under some condition (not sure the exact condition).
As document of ActionSheetIOS#showShareActionSheetWithOptions()
(https://reactnative.dev/docs/actionsheetios) says
Display the iOS share sheet. The options object should contain one or both of message and url and can additionally have a subject or excludedActivityTypes:
I thought this would be a some kind of bug. If not I want some link to document that describes this behavior.
React Native version:
0.61.4
Steps To Reproduce
Provide a detailed list of steps that reproduce the issue.
- use
ActionSheetIOS#showShareActionSheetWithOptions()
- pass options with
message
andurl
- click copy option
- only message is copied to clip board
Expected Results
Copied text is expected to be message and with url.
Snack, code example, screenshot, or link to a repository:
ActionSheetIOS.showShareActionSheetWithOptions(
options,
error => {
// do some error handling
},
(success, activityType) => {
// do some success option
},
);
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (1 by maintainers)
Top GitHub Comments
So I was working on this issue and found out that the url is only copied when it has http:// or https: protocol. And I tried to reproduce the same bug using steps give by @omuomugin but it worked for me https://snack.expo.io/@dhirajj75/actionsheetios
Closing this issue.