ericwooley / react-nativeish

React Native / React Native Web Boilerplate
MIT License
106 stars 7 forks source link

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

Open grantbi opened 6 years ago

grantbi commented 6 years ago

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 commented 6 years ago

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.

grantbi commented 6 years ago

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 commented 6 years ago

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.