react-nativeish icon indicating copy to clipboard operation
react-nativeish copied to clipboard

Trouble using react-native-vector-icons in web

Open grantbi opened this issue 6 years ago • 3 comments

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).

grantbi avatar Apr 23 '18 21:04 grantbi

I'm glad you like it! :pray:

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.

ericwooley avatar Apr 27 '18 01:04 ericwooley

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.

grantbi avatar May 18 '18 04:05 grantbi

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.

ericwooley avatar May 18 '18 15:05 ericwooley