Skip to content
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

Able to gets icons as file or base64 string #221

Open
AlenToma opened this issue May 25, 2022 · 2 comments
Open

Able to gets icons as file or base64 string #221

AlenToma opened this issue May 25, 2022 · 2 comments

Comments

@AlenToma
Copy link

This issue is related to expo/expo#17602

I figure that since the app cant display icons without internet so I wanted to download the icons the first time the app run and has internet and then cache those icon as a file or a base64string so it could be loaded when there is no internet.

The problem is that expo dose not provide access to Icon.getImageSource() for some reason, even if I am using this library in bare project.

Then I figure using @oblador/react-native-vector-icons instead but still somehow expo override those settings, this is really bad as it should be optional and we should choose either we would want to use it or not.

Could you please provide Icon.getImageSource() or something similar.

You could simple say cache those images on a bundle, this I cannot do because there is simple to many icons for different themes and mobiles, so adding those images in apk is simple not something I would like to do.

@DianaLaa
Copy link

DianaLaa commented Dec 2, 2022

Where did you read that "the app cant display icons without internet"? Can you provide a source for this? I thought the icons were just bundled in the app?

@AlenToma
Copy link
Author

AlenToma commented Dec 2, 2022

I found that I get the issue after i publish a new update to expo and my app get the update.
expo publish do not boundle the icons it seems

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants