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

react-native-vector-icons not working on web #47

Open
HeaDBanGer84 opened this issue Nov 17, 2017 · 2 comments
Open

react-native-vector-icons not working on web #47

HeaDBanGer84 opened this issue Nov 17, 2017 · 2 comments

Comments

@HeaDBanGer84
Copy link

HeaDBanGer84 commented Nov 17, 2017

Enviroment:

  • template version : (0.x.x) no clue how to find out...the version from yesterday
  • react-native-vector-icons: (4.4.2),
  • react-native version: ("0.50.3)
  • OS : Linux
  • Platform causing error: web

Step 3: Describe the problem (try to include screenshots):

Try to include react-native-vector-items, which works pretty well on android, but not on the web. Seems that the fonts are not bundled correctly with the webpack.config (neither Production nor dev). I searched my ass up to find the configs in the react-scripts module and try to added the needed loader but didn't work.
Your template is really awesome so perhaps you guys could help me/fix this, because you mentioned rnvi on your readme and i think it is a very usefull asset lib.

Steps to reproduce:

  1. create a new project, as discribed in Readme.md
  2. yarn add react-native-vector-icons
  3. added an icon in TopLevelScreenComponent.js
//...
import Icon from 'react-native-vector-icons/dist/MaterialIcons';
...
render() {
//...
<Icon.Button name = "image"
                 backgroundColor = "#a41010"
                 onPress = {this.props.failDispatchedAction} >Test Icon Button </Icon.Button>
//...  

Observed Results:

no errors just the font could not be loaded (on web...on android ...perfect)

Expected Results:

a button with an icon

@HeaDBanGer84
Copy link
Author

bildschirmfoto von 2017-11-17 10-38-42
some screenshot

@raimens
Copy link

raimens commented Dec 15, 2017

I'm struggling with too :( :( :( or may I can say stuck

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