-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Display a image through require. #246
Comments
Have you tried doing that? I think it works similar to the source of the |
jeez this works... so why @DylanVann wrote this in #160 :
Doing like you wrote it already works!
and this is really confusing. I propose two things:
And in the near future:
OR
Intuitively this is needed in order to give a clear shape to the source prop |
@giacomocerquone just type there asset folder url for your image, after bundling it would be {{ uri: 'imagE_myimage'}} , and it will fallback to local image and u will't have to write boilerplate |
On the current |
@n1ru4l bcs it support offline image docoding i gueess |
@gabrielfgularte |
@giacomocerquone thanks for your answer. But I'm afraid that not, this isn't linked with that problem. Those errors and prints were tested in a Android Studio simulator. =/ |
@gabrielfgularte have you find any-workaround for this issue? I am also facing the same issue, |
Use single dot like |
Hi all, I don't understand why this doesn't work
If I use fallback true, and a default Image component is used, why I still must use a file url?
The error I get, of course, is this:
undefined is not a function evaluating source.uri.startsWith('file://')
I know how I can get around the problem (I'd just create a component that shows the default Image component or the fast image one based on certain condition), but I'd like to know if there is a proper way of doing this without the need of adding boilerplate code!
If it's normal that it doesn't work, it shouldn't be harder at all to implement it since you're already falling back to the Image default component that accepts a required local image
The text was updated successfully, but these errors were encountered: