MCPcopy
hub / github.com/ant-design/ant-design-mobile-rn

github.com/ant-design/ant-design-mobile-rn @5.4.3 sqlite

repository ↗ · DeepWiki ↗ · release 5.4.3 ↗
837 symbols 1,658 edges 450 files 4 documented · 0%
README

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 开发,提供类型定义文件。

Expo

HTML5 预览: ant-design-mobile-rn/index.html

SDK 52(react-native@0.76+)
expo/ant-design-mobile-rn

提示:使用本地原相机扫瞄上面的二维码, 需要下载 Expo App: https://expo.io/tools

Expo SDK(47, 49, 50, 51) history version

SDK 47 iOS SDK 47 Android SDK 49,50 SDK 51
expo/ant-design-mobile-rn expo/ant-design-mobile-rn expo/ant-design-mobile-rn expo/ant-design-mobile-rn

安装 & 使用

npm install @ant-design/react-native @ant-design/icons-react-native

安装peer依赖

接下来安装来自 peerDependencies 管理的依赖:

  • 如果使用Expo来构建项目的,请使用 expo推荐,这能安装到最合适的版本): bash npx expo install react-native-gesture-handler react-native-reanimated

  • 如果使用React Native CLI原生构建项目的,请使用 npmbash npm install react-native-gesture-handler react-native-reanimated

  • 对于 iOS 的 React Native CLI裸项目,请确保已安装 CocoaPods。然后执行 pods (auto linking),

Android 不需要手动处理: bash cd ios pod install cd ..

链接字体图标

将字体资源路径配置到根目录下的 react-native.config.js 文件中 ( 如果没有,请创建 )

module.exports = {
  assets: ['node_modules/@ant-design/icons-react-native/fonts'],
};

然后执行 react-native-asset 的命令

npx react-native-asset

链接

本地演示

  • 使用 expo-cli 运行
# go to expo example folder
cd example

# install dependencies
yarn

# start expo
yarn expo
  • 使用 react-native-cli 运行
# clone
git clone git@github.com:ant-design/ant-design-mobile-rn.git

# go to ant rn folder
cd ant-design-mobile-rn

# install dependencies
yarn

# start ios
cd rn-kitchen-sink/ios && pod install
yarn ios

# start android
yarn android

欢迎贡献

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


感谢@ant-design/react-native的所有贡献者:

contributors

Extension points exported contracts — how you extend this code

SwipeoutButtonProps (Interface)
(no doc) [1 implementers]
components/swipe-action/PropsType.tsx
FlexPropsType (Interface)
(no doc)
components/flex/PropsType.tsx
ProgressProps (Interface)
(no doc)
components/progress/index.tsx
Locale (Interface)
(no doc)
components/locale-provider/index.tsx
TooltipStyle (Interface)
(no doc)
components/tooltip/style/index.tsx
ResultPropsType (Interface)
(no doc)
components/result/PropsType.tsx
ActionSheetNativeProps (Interface)
(no doc)
components/action-sheet/AndroidContainer.tsx
OnChangeParams (Interface)
(no doc)
components/checkbox/PropsType.tsx

Core symbols most depended-on inside this repo

rnDemoTest
called by 35
tests/shared/demoTest.js
useTheme
called by 14
components/style/index.tsx
onClose
called by 12
components/modal/Modal.tsx
onChange
called by 12
components/tag/demo/basic.tsx
onChange
called by 11
components/tag/index.tsx
onPress
called by 10
components/swipe-action/PropsType.tsx
base
called by 10
components/toast/methods.tsx
getComponentLocale
called by 8
components/_util/getLocale.tsx

Shape

Function 230
Method 227
Class 193
Interface 187

Languages

TypeScript98%
Java2%

Modules by API surface

site/desktop/src/template/Content/MainContent.jsx16 symbols
components/tabs/Tabs.tsx15 symbols
components/stepper/stepper.tsx12 symbols
components/modal/ModalView.tsx12 symbols
components/carousel/index.tsx12 symbols
components/textarea-item/index.tsx10 symbols
components/tag/index.tsx10 symbols
components/tabs/DefaultTabBar.tsx10 symbols
site/utils.jsx9 symbols
components/form/FormItem/index.tsx9 symbols
components/accordion/index.tsx9 symbols
components/radio/demo/basic.tsx8 symbols

Dependencies from manifests, versioned

@ant-design/icons-react-native2.3.2 · 1×
@ant-design/tools17.3.0 · 1×
@babel/core7.12.9 · 1×
@babel/runtime7.12.5 · 1×
@bang88/react-native-ultimate-listview4.1.1 · 1×
@expo/metro-runtime4.0.1 · 1×
@floating-ui/react-native0.10.6 · 1×
@rc-component/mini-decimal1.1.0 · 1×
@react-native-community/eslint-config2.0.0 · 1×
@react-navigation/native6.1.1 · 1×
@react-navigation/stack6.3.10 · 1×
@testing-library/jest-native4.0.1 · 1×

For agents

$ claude mcp add ant-design-mobile-rn \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact