react-native-share
react-native-share copied to clipboard
feat(android, ios): Implement SMS share
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
seems like this should be fine - looks like it just needs a rebase to drop first 2 commits after merging #1268 Thanks @ken0nek !
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.
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...