【发布时间】:2020-01-05 20:18:24
【问题描述】:
所以我有我的自定义库my-library,带有一个react-native.config.js 文件。
module.exports = {
dependency: {
assets: ['Fonts'], // This lib contains custom fonts.
}
};
当我在不同项目的某处执行yarn install my-library 时,我需要手动运行react-native link my-library 以使字体在我的应用程序中可用。
是否可以在yarn install 上自动链接?
【问题讨论】:
标签: react-native autolink