antd-mobile-ui 是用 taro3 开发,兼容 rn、h5 和小程序的 ui
$ npm install --save antd-mobile-ui
$ npm install --save antd-mobile-ui-rn
# or
$ yarn add antd-mobile-ui
$ yarn add antd-mobile-ui-rn
编辑 config/index.js h5 下增加配置
esnextModules: ["antd-mobile-ui"],
components/antd-mobile-ui/index.tsx
export { Button, Space } from "antd-mobile-ui";
components/antd-mobile-ui/index.rn.tsx
export { Button, Space } from "antd-mobile-ui-rn";
import { Button, Space } from "components/antd-mobile-ui";