Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor: RN Picker 重构(移除 @ant-design) #1863

Open
wants to merge 45 commits into
base: master
Choose a base branch
from

Conversation

wangshunnn
Copy link
Collaborator

Refactor

  • picker 表单组件重构:基于 picker-view 组件重构,移除之前依赖的 @ant-design/react-native

PR Diff

  • 主要改动在 picker 组件文件夹:packages/webpack-plugin/lib/runtime/components/react/mpx-picker
  • 另外基于 mpx-portal 封装了可扩展的弹窗管理器 hooks:packages/webpack-plugin/lib/runtime/components/react/mpx-popup/index.tsx,方便 picker 实现类似微信的半弹层效果,未来其他内部 RN 组件可以扩展复用。
  • Lint: 增加 jsx lint,修复了存量 jsx lint 问题

Preview

1. 普通选择器:mode = selector Snipaste_2025-02-18_16-14-52
2. 多列选择器:mode = multiSelector Snipaste_2025-02-18_16-14-52
3. 时间选择器:mode = time Snipaste_2025-02-18_16-14-52
4. 日期选择器:mode = date Snipaste_2025-02-18_16-14-52
5. 省市区选择器:mode = region Snipaste_2025-02-18_16-14-52

@wangshunnn wangshunnn changed the title Refactor: RN Pikcer 重构(移除 @ant-design) Refactor: RN Picker 重构(移除 @ant-design) Feb 24, 2025
@wangshunnn wangshunnn requested a review from hiyuki February 24, 2025 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants