Skip to content

Latest commit

 

History

History
90 lines (62 loc) · 3.18 KB

README.zh-CN.md

File metadata and controls

90 lines (62 loc) · 3.18 KB

English | 简体中文

Ant Design Mobile RN

Codecov npm package NPM downloads Dependency Status Percentage of issues still open Join the chat at https://gitter.im/ant-design/ant-design

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

安装peer依赖(4.0.0+)

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

介绍

链接

欢迎贡献

有任何建议或意见您可以进行 提问