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

Empty image for local IOS image file #285

Closed samuelgja closed 3 months ago

samuelgja commented 3 months ago

Describe the bug A clear and concise description of what the bug is.

Idk if this is an issue or it just not work, but when source is local file on ios, it not work. note: I did not test android

To Reproduce Steps to reproduce the behavior: When source is local ios image in format: ph://20C6B995-C580-4484-AA9B-BA3F6C198835/L0/001 I get empty image.

Expected behavior It should work even for local image uri-s? Idk

Smartphone (please complete the following information): All ios devices (simulator / real device), android was not tested.

Additional context Add any other context about the problem here.

duguyihou commented 3 months ago

It does not support this format. You can only load local asset in this way.

// local asset

<TurboImage
  source={require('../../assets/local.png')}
  style={{ width: 300, height: 300 }}
/>;