[Fabric] How can I use react-native-vector-icons in the new cpp-template? #12954
-
I need to copy font files into the "assets" directory in visual studio, how do I do that? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The module doesn't claim to support windows in the directory: https://reactnative.directory/?search=react-native-vector-icons But is this your primary question?
If you copy the files via the file system then you don't need to do any setup in visual studio. The bundler should pick up anything in there. Can you provide more context to your question? |
Beta Was this translation helpful? Give feedback.
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…