@webority/mobile-ui

中文文档
0.119.0发布于 2026/11/03SEE LICENSE IN LICENSE.txtTypeScriptESM + CJS

Beautiful, animated, accessible React Native components, theme and form engine for Webority projects.

原始使用文档

@webority/mobile-ui

77 animated, accessible React Native components with a full theme system (light and dark), hooks, and a dependency-free form engine. The platform layer (HTTP, auth, config, logging) lives in @webority/mobile-core.

npm install @webority/mobile-ui

Theme: colours, radius and fonts come from the shared Webority tokens. An app passes its brand and settings to ThemeProvider (see docs/mobile/migration-to-0.89.md).

No external runtime dependencies beyond @webority/mobile-core. Requires react-native-gesture-handler, react-native-reanimated and react-native-safe-area-context as peers, and expo-file-system, where AuthedImage keeps its downloaded images; react-native-haptic-feedback is optional. Gradients use React Native's own experimental_backgroundImage, so no gradient library is needed.

Full documentation lives in the repository's docs/ directory.

版本与发布记录

@webority/mobile-ui 共发布 102 个版本,首次发布于 2026/10/04;过去 12 个月发布了 102 个版本。

版本发布日期距今
0.119.0latest2026/11/03今天
0.118.02026/11/03今天
0.117.02026/11/03今天
0.116.02026/11/02今天
0.115.02026/11/021 天前
0.114.02026/11/021 天前

关于 @webority/mobile-ui 的常见问题

@webority/mobile-ui 是什么?

美丽的,动画的,可访问的React Native组件,主题和web项目的表单引擎。

如何安装 @webority/mobile-ui?

在项目目录运行 npm install @webority/mobile-ui,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:expo(>=57.0.0)、react(^19.1.0)、expo-image(>=57.0.0)、expo-haptics(>=57.0.0)、react-native(>=0.81.0)、react-hook-form(^7.55.0)、expo-file-system(>=57.0.0)、react-native-svg(>=15.0.0)、@webority/mobile-core(0.119.0)、react-native-worklets(>=0.10.0)、react-native-reanimated(^4.0.0)、react-native-gesture-handler(^2.21.0 || ^3.0.0)、react-native-safe-area-context(>=5.4.0)、react-native-keyboard-controller(>=1.21.9)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@webority/mobile-ui 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@webority/mobile-ui 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@webority/mobile-ui 可以商用吗?

@webority/mobile-ui 使用 SEE LICENSE IN LICENSE.txt 许可。许可条款写在包内的独立文件中,请阅读该文件确认可否商用。以上为概括,不构成法律意见,请以许可原文为准。

@webority/mobile-ui 还在维护吗?

最新版本 0.119.0 发布于 2026/11/03(今天);至今共发布 102 个版本,其中过去 12 个月发布了 102 个;首次发布于 2026/10/04。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。