You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
react-native link is copping all fonts into assets folder for android.
For ios it is registering font files in ios project file without making files copies.
problem
I don't want to store copies of all fonts in android assets folder.
Suggestion
There are few ways of solving this:
We can make gradle task in https://github.com/facebook/react-native/blob/master/react.gradle which will copy font files in "generated/assets" in build time. So fonts will be synced automatically same as images.
I don't know is something similar possible for ios (registering fonts files in build time, without changing source code files)
to make behavior similar to ios link command could just create text file file with font paths to track them instead of making copies. We can add this file to git. And then gradle task adds only fonts from this file, not all of them.
We have quite a bunch of issues regarding improvements in link command, can you check if any of those relate to your request? Would be nice to consolidate some stuff if possible, but I think this one makes sense on its own.
react-native link
is copping all fonts into assets folder for android.For ios it is registering font files in ios project file without making files copies.
problem
I don't want to store copies of all fonts in android assets folder.
Suggestion
There are few ways of solving this:
I don't know is something similar possible for ios (registering fonts files in build time, without changing source code files)
link
command could just create text file file with font paths to track them instead of making copies. We can add this file to git. And then gradle task adds only fonts from this file, not all of them.originally posted here react-native-community/discussions-and-proposals#89
The text was updated successfully, but these errors were encountered: