2021年3月29日星期一

Android Use fonts for dependency package

I am very new to mobile development. I am trying to use a downloaded font in my react native package. I searched online. The answers are similar, which ask me to create a font folder and put it under src/main/assets/font, but there is no android folder in my package since it is only a dependency package of the main project. I can only run it from the main project. I tried to add font folder under assets folder in main project, but it's not working. I am wondering if I miss any steps? Or is there any way that I can add the font in my own package, but not under android folder? And due to company security, I cannot use npx or npm to link.

https://stackoverflow.com/questions/66863518/android-use-fonts-for-dependency-package March 30, 2021 at 09:04AM

没有评论:

发表评论