React Native 使用 阿里 ant-design
一、安装
npm install antd-mobile-rn --save
npm install babel-plugin-import --save-dev
二、配置
编辑根目录下 .babelrc 增加 红色区域显示代码
{ "presets": [ "module:metro-react-native-babel-preset" ], "plugins": [ [ "import", { "libraryName": "antd-mobile-rn" } ] ] }
三、使用
更多:
阿里 ant-design 菜单很丰富
https://github.com/ant-design/ant-design-mobile
动画效果:
http://motion.ant.design/index-cn
阿里中后台UI解决方案 - Fusion
https://zhuanlan.zhihu.com/p/53117538
本博客地址: wukong1688
本文原文地址:https://www.cnblogs.com/wukong1688/p/11071545.html
转载请著名出处!谢谢~~