react native中引入antd-mobile

1.安裝antd-mobile與babel-plugin-importreact yarn add antd-mobile react-dom yarn add --dev babel-plugin-import 2.編輯 .babelrcweb {"plugins": [["import", { "libraryName": "antd-mobile" }]]} 3.使用json import
相關文章
相關標籤/搜索