Nativebase: Icons not working

Created on 25 Jul 2018  路  2Comments  路  Source: GeekyAnts/NativeBase

node, npm, react-native, react and native-base version

node v9.5.0
npm v6.2.0
react 16.4.1
react-native 0.56.0
native-base: 2.7.2

Expected behaviour

Icons appear:

export const MyIcon = () => <Icon name='home' />
export default MyIcon

Actual behaviour

No icons appear:
screen shot 2018-07-25 at 2 17 14 pm

Steps to reproduce should include code snippet and screenshot

export const MyIcon = () => <Icon name='home' />
export default MyIcon

Is the bug present in both iOS and Android or in any one of them?

Android Emulator

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

I'm using an Android Emulator Nexus 5X API 26 Android 8.0

Most helpful comment

have you done react-native link

make sure ReactProjectandroidapp\srcmainassets\fonts have all fonts icon..
iconspath

or else you need to install manually this lib.
https://www.npmjs.com/package/react-native-vector-icons

All 2 comments

have you done react-native link

make sure ReactProjectandroidapp\srcmainassets\fonts have all fonts icon..
iconspath

or else you need to install manually this lib.
https://www.npmjs.com/package/react-native-vector-icons

thanks @ZeroCool00 ... that was it. :shame_faced:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

aloifolia picture aloifolia  路  3Comments

kitsune7 picture kitsune7  路  3Comments

natashache picture natashache  路  3Comments

eggybot picture eggybot  路  3Comments

Landerson352 picture Landerson352  路  3Comments