-
Notifications
You must be signed in to change notification settings - Fork 17
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
How to Load image from device #33
Comments
same issue |
Having the same issue... |
Any update on this ? @gre |
I have been dealing the same problem. Usual <Image> works with the original uri but <GLImage> doesn't work ( i picked the uri by using expo mediaLibrary ). It seems like encoding problem but may also related with the async process problem. I have solved my problem with using FileSystem of expo instead of relying on GLImage uri process. Here is the code;
Here, image variable is the current uri of the image ( taken by mediaLibrary ) . After all FileSystem gathers the info, i set the image variable with the info.uri ( which has slightly different encoding then original uri ) and i used it with Note : @gre this might be happening due to that expo depreciated expo-assets |
Can you confirm this is now fixed in this upcoming version? Thanks
|
<GLImage source={{uri:"https://i.imgur.com/uTP9Xfr.jpg"}} resizeMode="contain"/>
this works perfectly fine.But
<GLImage source={{uri:"file://..."}} resizeMode="contain"/>
this renders nothing. I have tried usingresolveAssetSource
but no luck there as well.@gre Help would be really appreciated. Thank You
The text was updated successfully, but these errors were encountered: