More context in ENG-3379.
I wasn't able to get expo-image to compile alongside react-native-fast-image due to conflicting Pod dependencies on SDWebImage, so I just went with a wholesale replacement.
Differential D7151
[native] Migrate from react-native-fast-image to expo-image ashoat on Mar 22 2023, 5:13 PM. Authored by Tags None Referenced Files
Subscribers
Details More context in ENG-3379. I wasn't able to get expo-image to compile alongside react-native-fast-image due to conflicting Pod dependencies on SDWebImage, so I just went with a wholesale replacement. Here's how I tested:
I did all of these steps once with dev buils on iOS / Android, and another again with release builds for both. Then, separately, I was able to confirm that it could render an SVG data URI on iOS / Android and in dev / release modes using this patch.
Diff Detail
Event TimelineComment Actions Done testing!! I think this is safe to land. I haven't tested blurhash or SVG / data URI support yet, but those are things that react-native-fast-image can't handle today anyways Comment Actions Just tested and it looks like this solves rendering SVG data URIs for us!! I haven't tested other types, but PNG, JPEG, and SVG are all listed as supported in the docs. Thanks @bartek for the tip! This is way better than what I had planned to do on Android. Comment Actions That's great news! I'll patch this and test if it works with my decrypted image data too Comment Actions It seems to work with all data URIs too! Also, I was able to quickly set up some example blurhash (hardcoded for now) and display it while images are being decrypted. |