Skip to content

[Fabric] How can I use react-native-vector-icons in the new cpp-template? #12954

Answered by chrisglein
l3utterfly asked this question in Q&A
Discussion options

You must be logged in to vote

If you put files in the assets folder they will be copied over for the bundle. The question is how do you refer to them. Nothing about putting them in the bundle will have them automatically loaded as valid font faces. So there needs to be some Uri to the loaded file. If you poke around in the vector-icons you can see some per-platform logic there wit adding the files. I'm not actually positive what the steps are for UWP fonts (which is what you'd need for RNW Paper). There are some articles on it like this. There might be something from within the main Windows typography articles, I'm not sure. Not saying it isn't possible, I'm just not personally familiar. I do see that Xamarin has some…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@l3utterfly
Comment options

@chrisglein
Comment options

Answer selected by chrisglein
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants