react-native-social-share
react-native-social-share copied to clipboard
Tweet failed to send
I am getting this error. I have integrated all step require. Can you give me any instruction
Which api do you use (sharePhoto or shareVideo)? Did you get any error in Xcode console log? Any more info would be help.
Hi. I can not test on xcode so I have to build and push to test flight instead. I was using "shareVideo".
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