ant-design-icons icon indicating copy to clipboard operation
ant-design-icons copied to clipboard

warn dependency.assets is not allowed

Open vivkikkk opened this issue 2 years ago • 5 comments

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.

vivkikkk avatar Aug 23 '22 02:08 vivkikkk

I also encounter the same problem. "react-native": "0.69.6" does not allow links. How can I solve this problem?

Nice-zrd avatar Oct 12 '22 07:10 Nice-zrd

I also encounter the same problem. Do you have any solutions?

hwjm avatar Dec 19 '22 09:12 hwjm

any solution?

MDG-MMeksasi avatar Mar 02 '23 10:03 MDG-MMeksasi

Any Solution

ashokkumawat708 avatar Mar 04 '23 04:03 ashokkumawat708

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

  1. yarn add react-native-asset
  2. config react-native.config.js like this
module.exports = {
   assets: ["node_modules/@ant-design/icons-react-native/fonts"]
};
  1. if using metro add this into app.json
"packagerOpts": {
    "config": "metro.config.js"
  }
  1. yarn react-native-asset -> this will copy assets into platform specific path
  2. yarn android / yarn ios

huzhanbo1996 avatar Jun 23 '23 09:06 huzhanbo1996