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

Can't Use SimpleLineIcons #755

Closed
OmriAharon opened this issue Apr 19, 2017 · 1 comment
Closed

Can't Use SimpleLineIcons #755

OmriAharon opened this issue Apr 19, 2017 · 1 comment

Comments

@OmriAharon
Copy link

OmriAharon commented Apr 19, 2017

I've gone over all issues, and nothing worked for me.
I'm trying to use the like icon from SimpleLineIcons but I keep getting a question mark.

react-native, react and native-base version

RN: 0.43.3
NB: 2.1.2

Expected behaviour

I see the Like Icon when using this:

import {Icon} from "native-base";
...
<Icon name="like" style={{fontSize: 12, color: 'red'}} />

Actual behaviour

I see a question mark.

Steps to reproduce (code snippet or screenshot)

image

Screenshot of emulator/device

Also seeing an invalid value for name attribute:
image

Is the bug present in both ios and android or in any one of them?

I'm just trying the android emulator.

Any other additional info which would help us debug the issue quicker.

I tried react-native link react-native-vector-icons.
I tried manually copying the fonts from react-native-vector-icons to android/app/src/main/assets/fonts.
I tried installation with gradle as requested in the react-native-vector-icons repo.
I managed to get some icons to work, such as md-menu.
Also - if there is the same name for an icon in two different icon fonts, how do we tell it which font we want it to draw the icon from?

@OmriAharon OmriAharon changed the title Can Can't Use SimpleLineIcons Apr 19, 2017
shivrajkumar pushed a commit that referenced this issue Apr 25, 2017
@shivrajkumar
Copy link
Collaborator

@OmriAharon Check the latest v2.1.3
Fixed

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