duguyihou / react-native-turbo-image

Performant image component for React Native
https://www.npmjs.com/package/react-native-turbo-image
MIT License
167 stars 9 forks source link

IOS does not support displaying local SVG resources #314

Closed xiaoyaotan12345 closed 3 months ago

xiaoyaotan12345 commented 3 months ago

Describe the bug IOS does not support displaying local SVG resources

To Reproduce

<TurboImage
    style={{width: 100; height: 100;}}
    format="svg"
    source={require('../../assets/svgs/file/folder.svg')}
  />

Smartphone

duguyihou commented 3 months ago

@xiaoyaotan12345

Thanks for raising this. I will create a new release to fix it.

simulator_screenshot_AD9EF56F-B7DB-471A-A9C0-3477F44AE647

duguyihou commented 3 months ago

@xiaoyaotan12345 Let me know if you still have this issue with v1.14.0. 😃

xiaoyaotan12345 commented 2 months ago

@xiaoyaotan12345 Let me know if you still have this issue with v1.14.0. 😃

v1.17.0 Translation: Differences in iOS and Android Behavior‌

-‌iOS Simulator Issue‌: Unable to display local SVG images. Question: Require real device testing?

-‌Android Platform Differences‌: Simulator: Displays SVG images normally. Real Device: App crashes.