android - How add custom icons from my pc to my ReactNative app (NativeBase TabBar Icon) -
* imported nativebase components *i using "tabbar" contains item *the platform android
i designed many icons app, , used several tag need add custom icon in tag can't. way try used it.
also... way call local icon:
const iconmore = require('../../../static/img/tabbarandroid/more.png');
render() { return ( <tabs> <tab heading={ <tabheading> <icon name={iconhome} /> </tabheading>} > <newslist /> </tab> <tab heading={ <tabheading> <icon android={iconinterest} /> </tabheading>} > <favoritelistcomponent /> </tab> <tab heading={ <tabheading> <icon android={iconsearchchurches} /> </tabheading>} > <mapchurchcomponent /> </tab> <tab heading={ <tabheading> <icon android={iconheadquarters} /> </tabheading>} > <churchlistcomponent /> </tab> <tab heading={ <tabheading> <icon android={iconmore} /> </tabheading>} > <mascomponent /> </tab> </tabs> ); }
Comments
Post a Comment