-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Android, even with file://
prefix, it is not loading into <Image>
#517
Comments
I have also tried specifying the
However this did not fix it either. |
Thanks very much @lll000111 for your help and trying to google. I really appreicate your help, very much! I also searched hard but nothing helped. Doing |
Well... it would be nice to see all relevant information right away.
Even if it indeed doesn't provide any more information, it would still be nice to see that. It might help, if nobody comes forward with a solution, if you could create a test case for the test repo for RNFB along the lines of the existing test cases in Reading the description here (link) you could try reading the image as base64 encoded string and using a Unfortunately the example promised on the images page for Local Filesystem Images (link) does not exist, unless they meant the CameraRoll API description. As I see it, this is mainly a React Native issue, not an RNFB one. You already got your file after all, now it's the Image component's turn to use it. Did you specify a size? The documentation says
That's under "Network Images" but I guess that's true for the filesystem as well. |
Feel free to reopen if you have new information. |
Thank you sir.
If i load as base64, the resources are so big it eventually causes a crash.
Yes I specified with and height
I feel this is closed prematurely, but thanks for bearing with me. I will keep trying. I will try to take time out and write a test as you requested. I have no experience with writing these tests, if you could help me I would really appreciate it. I will go look at the tests now. Things are confusing here, ie setting |
You could try asking on StackOverflow, with as detailed information as possible (or they'll get mad and you get downvotes). |
Thank you sir for re-opening due to my comment. I really respect that. I will close as you originally intended and will try to add the material you recommended here. |
On Android I am using the following snippet, this is right from the readme - https://github.com/wkh237/react-native-fetch-blob/#download-to-storage-directly
However it is not loading. There is not even a trigger of
onError
noronLoadStart
noronLoadEnd
noronLoad
.I did not add any extra permissions, as I use this same method to load videos to with
react-native-video
and it works fine. It's just<Image>
s, does anyone know why?The text was updated successfully, but these errors were encountered: