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

feat(android, ios): Implement SMS share

Open ken0nek opened this issue 3 years ago • 1 comments

Overview

SMS sharing is marked as supported but it doesn't work on my end.

  • [ ] iOS
  • [ ] Android
  • [ ] Example

I want to port this implementation into this repo.


Linking.openURL('sms://[phone_number]/?body=[body]'); // Android

Linking.openURL('sms://[phone_number]/&body=[body]'); // iOS

Test Plan

ken0nek avatar Aug 19 '22 05:08 ken0nek

seems like this should be fine - looks like it just needs a rebase to drop first 2 commits after merging #1268 Thanks @ken0nek !

mikehardy avatar Aug 20 '22 00:08 mikehardy

This pull request has been marked as stale. Thank you for your contributions. You may also comment, or remove this label in order to avoid closing this.

github-actions[bot] avatar Oct 19 '22 02:10 github-actions[bot]

Still not working on iOS:

console.log('Trying to share...');
    try {
      const res = await Share.shareSingle({
        message: 'Test SMS',
        social: Social.Sms,
      });
      console.log('Success', res);
    } catch (error) {
      console.log('Failure', error);
    }

I can only see Trying to share... in the console, nothing after that...

blyszcz avatar Jun 14 '23 09:06 blyszcz