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

MultiStyle Fonts

Open META-DREAMER opened this issue 5 years ago • 6 comments

react-native-vector-icons now supports multistyle fonts (e.g. FontAwesome 5 with solid variants of their icons): https://github.com/oblador/react-native-vector-icons#multi-style-fonts

However, this doesn't work in Expo vector-icons. This limits the ability to use icons like user-circle which currently only shows the outline version

META-DREAMER avatar Jul 28 '20 23:07 META-DREAMER

I think this is solved

hbiede avatar Oct 26 '23 22:10 hbiede

I'm sorry, I could not find how this is solved! :blush:

In particular, this example from react-native-vector-icons using FontAwesome6 cannot be reproduced with vector-icons: https://github.com/oblador/react-native-vector-icons/blob/master/packages/fontawesome6/README.md#usage

Indeed, the two following icons end up being the same with vector-icons whereas they are different with react-native-vector-icons:

// import FontAwesome6 from '@react-native-vector-icons/fontawesome6';
import { FontAwesome6 } from '@expo/vector-icons';

const icon = <FontAwesome6 name="comments" />;
const icon_solid = <FontAwesome6 name="comments" iconStyle="solid" />;

alexisthual avatar Dec 08 '24 16:12 alexisthual

I believed them to be solved at the time in the sense that this package was supposedly slated for deprecation and removal. That seemingly never happened

hbiede avatar Dec 08 '24 16:12 hbiede

Sorry, I am not sure I understand your answer! Which package was slated for deprecation? Will vector-icons support this iconStyle feature, or offer another way to display solid icons?

alexisthual avatar Dec 12 '24 10:12 alexisthual

I was told that the expo wrapper would be deprecated and that the react-native-vector-icons would support those values

hbiede avatar Dec 12 '24 16:12 hbiede

Ok, thank you for the clarification!

alexisthual avatar Dec 13 '24 09:12 alexisthual