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

Tweet failed to send

Open ThanhQuang1410 opened this issue 4 years ago • 3 comments

I am getting this error. I have integrated all step require. Can you give me any instruction

image

ThanhQuang1410 avatar Jun 26 '20 14:06 ThanhQuang1410

Which api do you use (sharePhoto or shareVideo)? Did you get any error in Xcode console log? Any more info would be help.

r0b0t3d avatar Jun 26 '20 15:06 r0b0t3d

Hi. I can not test on xcode so I have to build and push to test flight instead. I was using "shareVideo".

ThanhQuang1410 avatar Jun 26 '20 15:06 ThanhQuang1410

Sharing video directly via Twitter SDK has some limitations.

- Duration should be between 0.5 seconds and 30 seconds
- File size should not exceed 5 mb
- Dimensions should be between 32x32 and 1280x1024
- Aspect ratio should be between 1:3 and 3:1
- Frame rate should be 40fps or less

Refer: https://github.com/twitter-archive/twitter-kit-ios/wiki/Compose-Tweets#video-requirements

I already implemented the way to compress video but not sure another requirements will be match. For alternative, you could try react-native-share to open native Share dialog. User can select Twitter from there

r0b0t3d avatar Jun 26 '20 15:06 r0b0t3d