-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
Unable to use local tmp file path for Image.source #751
Comments
Found the answer, need to pass I feel this should be added to the Image docs
|
Would be nice indeed. Want to send a pull request? |
np |
How to avoid using absolute path for local file uri? |
isStatic didn't work for me... resorted to adding images into images.xcassets as described in the docs ... too bad it's not called images.xcasettes |
For anyone coming here looking to solve the android file loading issue, you need to put file:// in front of your file on android |
@idibidiart I know it's very late to comment over here, but this can help others in Future.
to display image, otherwise it wan't visible. |
2018 now, using React Native 0.52 |
@vishalkakadiya thank you very much for this tip , the image started showing up as soon as i specified the height and the width property |
What worked for me on Android was a combination of many comments here:
|
I am trying to use a local tmp file for the source of an Image and keep seeing error "Unrecognized tag protocol"
from the docs:
Have tried (giving the image explicit height and width)
Loading web assets or static image resource works just fine.
The text was updated successfully, but these errors were encountered: