react-native-share: Cannot share image in base64 to telegram
Steps to reproduce
1. const url = 'data:image/jpeg;base64,' + base64string;
2. ```
const options = {
title: ‘React Native’,
url: url,
subject: ‘Share Link’, // for email
};
Share.open(options);
3. And loading takes forever
### Expected behaviour
Image loaded succesfully
### Actual behaviour
Image loading takes forever
### Environment
- **React Native version**: "^0.61.5"
- **React Native platform + platform version**: iOS 13.3.1
### react-native-share
**Version**: npm version or "master" "^3.1.0"
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 22
Hi, i had the same issue on iOS with sharing via telegram and i solved it with using the image-path instead of a base64 string:
thanks to @youngSt4r1 i have used saving to cache before sharing image to telegram
I tap share, then choose telegram, and then choose dialog and permanent loading
This worked perfectly for me
Yesterday I tested on Android and it worked (2.4MB img)
I used only the URL in base64 format, without subject or other params.
Text was shared succesfully.