English | 简体中文
Ant Design 移动端设计规范。@ant-design/react-native
是 Ant Design 的移动规范的 React 实现,服务于蚂蚁及口碑无线业务。
- 基于 Ant Design 移动设计规范。
- 规则化的视觉样式配置,适应各类产品风格。
- 基于 React Native 的多平台支持。
- 使用 TypeScript 开发,提供类型定义文件。
# clone
git clone [email protected]:ant-design/ant-design-mobile-rn.git
# go to ant rn folder
cd ant-design-mobile-rn
# install dependencies
yarn
# start ios simulator or android
# cd rn-kitchen-sink/ios && pod install
yarn ios # or yarn android
npm install @ant-design/react-native --save
or
yarn add @ant-design/react-native
npm install @react-native-community/cameraroll @react-native-community/picker @react-native-community/segmented-control @react-native-community/slider @react-native-community/viewpager
or
yarn add @react-native-community/cameraroll @react-native-community/picker @react-native-community/segmented-control @react-native-community/slider @react-native-community/viewpager
安装完依赖后需要到 iOS 目录
pod install
(auto linking),Android 不需要手动处理
# 手动链接字体图标
npx react-native link
有任何建议或意见您可以进行 提问。