-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
[0.62.0] Image with data:image/png;base64 crashing on iOS #28469
Comments
Image seems to load, but crashes somewhere in Flipper. |
Seems to be the same as #28454 |
+1 |
update to 0.62.1, still crash |
That’s because the update is only regarding the YellowBox which has been changed to use normal images, other than solving the base64 images in general. |
+1 |
+1 |
Still happening here even after upgrading to 0.62.2. |
This pull request facebook/flipper#978 fixes the issue for me. The problem is, it isn't released yet and, therefore, not fixed with the react-native 0.62.2 update. Please correct me if I am wrong. |
@rfischer This appears to be accurate as far as I can tell. Anyway to just turn off this Flipper business for now? Answered my own question, as simple as commenting out in the AppDelegate.m file. I'm rocking smooth as butter now. I'll Flip it back on when that fix is released |
Having the same issue. |
I was also having this issue. The app crashes when Image Picker returns data. Seems like commenting |
+1 |
1 similar comment
+1 |
+1. As an alternative until this issue gets fixed you can use WebView (react-native-webview) and it's html's source. In my case
is working fine. |
+1 |
Is there a permanent solution to this issue? |
+1 |
1 similar comment
+1 |
In lottie-react-native/lottie-react-native#638 they seem to have 2 possible workarounds detailed (update flipper or commenting InitializeFlipper). In my case, I decided to load the images from a file in the meanwhile. Hope this gets the official fix soon :) |
Commenting out the initialization function doesn’t seem to break my app, what is flipper used for? Can I just remove it entirely?
In my use case, I’m converting a canvas image to a dataURL in base64 format so, I too hope it gets fixed fairly soon. |
This is working for me aswell. I am sticking to this solution for now, to avoid messing too much with the underlying ios code. Great find, thank you! |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
This issue was closed because it has been stalled for 7 days with no activity. |
Description
Following the official example in the documentation https://reactnative.dev/docs/images#uri-data-images, the loading of an image using data:image/png;base64 is currently crashing when starting in the iOS emulator and no error can be seen (in the shells or in the react native debugger).
On Android it works correctly.
React Native version:
Emulator:
iPhone 11 with ios 13.4
Steps To Reproduce
npx react-native init Test --template react-native-template-typescript
cd ios && pod install && cd ..
And the
Image
element import tofrom 'react-native'
yarn start
andyarn ios
Expected Results
Image should load, or at least display an error.
The text was updated successfully, but these errors were encountered: