Skip to content
This repository has been archived by the owner on Jul 19, 2019. It is now read-only.

Trouble using react-native-vector-icons in web #19

Open
grantbi opened this issue Apr 23, 2018 · 3 comments
Open

Trouble using react-native-vector-icons in web #19

grantbi opened this issue Apr 23, 2018 · 3 comments

Comments

@grantbi
Copy link

grantbi commented Apr 23, 2018

I'm having trouble including react-native-vector-icons with CRA for web. Is there anything you'd recommend?

Could you post an example? I love this scaffolding btw.

It currently looks for Expo, I haven't ejected (was hoping not to have to).

@ericwooley
Copy link
Owner

I'm glad you like it! 🙏

Sorry I somehow missed this notification.

I'll update the deps for the repo this weekend, and see if I can fix the issue.

Good luck until then.

@grantbi
Copy link
Author

grantbi commented May 18, 2018

I figured it a partial solution. One needs to add the head tags in storybook to load any external font libraries.
https://storybook.js.org/configurations/add-custom-head-tags/

Also, add some external font links to the index.html head.

I couldn't actually get the react-native-vector-icons library to work, but used a font library anyway.

@ericwooley
Copy link
Owner

Hmm, that's strange that it doesn't work at all.

Are you still using the version of expo that comes with the boilerplate?

I'm sorry I've been super slammed, I haven't had time to update this in a while. I'll try to make it a priority.

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

No branches or pull requests

2 participants