ant-design-icons
ant-design-icons copied to clipboard
warn dependency.assets is not allowed
warn Package @ant-design/icons-react-native contains invalid configuration: "dependency.assets" is not allowed. Please verify it's properly linked using "react-native config" command and contact the package maintainers about this.
I also encounter the same problem. "react-native": "0.69.6" does not allow links. How can I solve this problem?
I also encounter the same problem. Do you have any solutions?
any solution?
Any Solution
react-native link with dependency.assets
has been removed after RN >= 0.69, so if anyone still wants to keep using new RN, u should use react-native-asset
instead: guide
- yarn add react-native-asset
- config react-native.config.js like this
module.exports = {
assets: ["node_modules/@ant-design/icons-react-native/fonts"]
};
- if using metro add this into app.json
"packagerOpts": {
"config": "metro.config.js"
}
- yarn react-native-asset -> this will copy assets into platform specific path
- yarn android / yarn ios