-
Notifications
You must be signed in to change notification settings - Fork 923
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
react-native@0.62.x crash for base64 urls sharing on iOS platform #797
Comments
Can you share the iOS logs @oleksandr-dziuban ? |
@MateusAndrade @mikehardy Could you please check this issue? Thanks a lot |
@MateusAndrade Added crash logs here.. |
Does this only happen when sharing a |
I didn't try |
Installing 3.1.2... one minute |
@MateusAndrade |
Strange, so with 3.3.3 it runs without any problem with rn@61.5? |
Didn't test 3.3.3 on 0.61.5. |
Will try 3.0.0 with 0.62.2... |
Strange, I'm using an older version(2.0.0) with rn@62.2 with any problem. I'm using the same approach with |
@MateusAndrade |
It works fine without I also use TrustKit for certificates pinning. Can it affect Share functionality? I see something weird in crash logs regarding network calls.. |
I don't know, I never had to use TrustKit. Would you mind disabling that to test this? Also I tested here with rn@62.2 and rn-share@2.00 It ti works fine. I need to test with a newer version to ensure this is working. 😅 Also, I'm using something like this:
|
What is type? |
I noted that you are setting the type. But I'm calling the capture.then(uri => Share.open({ uri })) Can you confirm if this works for you? Also, I need to confirm, but the right one probably is |
Tried to disable Truskit, pass |
view-shot return pure base64 string. We need to add |
Just tested v2.0.0, same crash for me... |
@MateusAndrade Tried your way to capture a file (not a base64) with view-shot - works fine! |
@MateusAndrade I will use this way for now, but issue with base64 still exists anyway. |
Great! Actually, wich can be wrong is: ````data:image/jpg;base64,```. I didn't test this using your approach, but maybe you are overriding the image type or something like that. Looking at the docs from Can you check with is the format of the output from your project? 👯 Edit: I did it a quick check at the docs of view-shot, and the default export from the capture is
I'm not certain about that, but maybe when you set a type |
Yes, I added jpg option to be a default for view-shot. |
I can replicate this error, even the example in |
This may have been the cause 👀 |
Thanks for sharing this. I will give a try updating the example project to this version. @oleksandr-dziuban would you mind testing this on your project? Unfortunately, I need to update the example to |
I'm testing the example App with #803 and apparently I'm having the same problem when I'm trying to share any Image with base64 with rn@62.2. 🤔 Did you get anything about that @Kta-M , @arrygoo ? Edit: I tested the suggestion from #789 (comment) and the example app is now working without any problem. 🎉 Can you try that @oleksandr-dziuban ? |
@MateusAndrade Haha, how the Flipper can affect base64 images flow? Really weird... but yes, it helps |
I don't have any idea, I was thinking of looking at the flipper repo but I'm without time this week. Also, can we close this issue? |
Hi guys. Any progress on this? Having same issue, but not using Flipper in my project |
Can you share your |
dependencies from package.json
and pods
|
@MateusAndrade my config presented above |
@krzysztofnowak did you try upgrading to a newer version of |
@MateusAndrade I made also test on totally empty, fresh project generated by react-native-cli with RN 0.63.2 and latest version of react-native-share. Same issue |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You may also mark this issue as a "discussion" and i will leave this open |
Any updates? |
@arthedza you're doing open source in a non-optimal way https://medium.com/hackernoon/i-thought-i-understood-open-source-i-was-wrong-cf54999c097b |
Steps to reproduce
Expected behaviour
IOS application successfully launches Share modal
Actual behaviour
IOS application crashes
Environment
react-native-share
react-native-share@3.3.3
The text was updated successfully, but these errors were encountered: