react-native-vector-icons icon indicating copy to clipboard operation
react-native-vector-icons copied to clipboard

adding border or text stroke

Open worldlyjohn opened this issue 10 years ago • 5 comments

I know Icon uses View/Text components which don't support webkit-text-stroke, but has anyone planned around with getting a (non-square) border around the icon?

basically, i want to have an icon outline and when active color it in. could use images, but was hoping to use this... awesome... (err) fonts package

cheers

worldlyjohn avatar Sep 04 '16 14:09 worldlyjohn

Only thing I can think of is to put two icons on top of each other.

oblador avatar Sep 08 '16 12:09 oblador

That may work. Thanks for the reply and obv for your work here

worldlyjohn avatar Sep 08 '16 19:09 worldlyjohn

@oblador can you provide an example of stacked icons? The example for react-native-icons didn't work for me and can't seem to find an example of it here.

import FA from 'react-native-vector-icons/FontAwesome';
<FA name="check" size={30} color="#fff">
        <FA name="check" size={15} colors="#000" />
</FA>

Results in two icons next to each other screen shot 2016-12-16 at 9 34 06 am

drewwells avatar Dec 16 '16 15:12 drewwells

@drewwells: You cannot use examples from another module, they are not compatible because of vastly different implementations. Don't nest, but have them adjacent and position them absolutely.

oblador avatar Dec 18 '16 15:12 oblador

Can you give a code snippet of how to do this implementation. Because, when removing color property I get, black as filled color.

mrishan1993 avatar Apr 17 '18 18:04 mrishan1993