NativeBase icon indicating copy to clipboard operation
NativeBase copied to clipboard

Icon "active" not rendering filled FontAwesome5 icon

Open bohan0 opened this issue 7 years ago • 4 comments

<Icon name="comment-alt" active={true} type="FontAwesome5" /> should produce a filled icon, but it renders the unfilled one.

"native-base": "2.12.1" "react-native-vector-icons": "6.4.2"

bohan0 avatar Apr 09 '19 08:04 bohan0

Not an issue please go through docs image

SupriyaKalghatgi avatar Apr 12 '19 11:04 SupriyaKalghatgi

There is a filled version of comment-alt (fa version) where the whole icon is black.

Your screenshot shows unfilled icon which is nit the right behaviour.

bohan0 avatar Apr 12 '19 13:04 bohan0

In vector-icons the option is called "solid"

bohan0 avatar Apr 12 '19 13:04 bohan0

@SupriyaKalghatgi There is not error, but the docs is not clear. Only work when we use the default type Ionicons but when i use another type like FontAwesome5 active prop not work because FontAwesome5 don't use Outline o Fill format like Ionicons.

@bohan0 You can play with icon color to show difference between yours icons.

<Icon name="comment-alt"  type="FontAwesome5" style={{ color: "black" }}/>
<Icon name="comment-alt"  type="FontAwesome5" style={{ color: "gray" }}/>

cristiankmb avatar Aug 12 '19 21:08 cristiankmb