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

组件 Picker mode="time" 时,不生效 #15707

Open
xushuailing opened this issue May 11, 2024 · 0 comments
Open

组件 Picker mode="time" 时,不生效 #15707

xushuailing opened this issue May 11, 2024 · 0 comments
Labels
F-react Framework - React T-rn Target - 编译到 React Native V-3 Version - 3.x

Comments

@xushuailing
Copy link

相关平台

React Native

使用框架: React

复现步骤

  1. 使用脚手架提供的模板
  2. 复制 Picker 提供的 demo

期望结果

正常可以选择时分秒

实际结果

显示为年月日

环境信息

👽 Taro v3.6.25


  Taro CLI 3.6.25 environment info:
    System:
      OS: macOS 14.1.2
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 18.17.0 - ~/.nvm/versions/node/v18.17.0/bin/node
      Yarn: 1.22.19 - ~/.nvm/versions/node/v18.17.0/bin/yarn
      npm: 9.6.7 - ~/.nvm/versions/node/v18.17.0/bin/npm
    npmPackages:
      @tarojs/cli: 3.6.25 => 3.6.25 
      @tarojs/components: 3.6.25 => 3.6.25 
      @tarojs/helper: 3.6.25 => 3.6.25 
      @tarojs/plugin-framework-react: 3.6.25 => 3.6.25 
      @tarojs/plugin-platform-alipay: 3.6.25 => 3.6.25 
      @tarojs/plugin-platform-h5: 3.6.25 => 3.6.25 
      @tarojs/plugin-platform-jd: 3.6.25 => 3.6.25 
      @tarojs/plugin-platform-qq: 3.6.25 => 3.6.25 
      @tarojs/plugin-platform-swan: 3.6.25 => 3.6.25 
      @tarojs/plugin-platform-tt: 3.6.25 => 3.6.25 
      @tarojs/plugin-platform-weapp: 3.6.25 => 3.6.25 
      @tarojs/react: 3.6.25 => 3.6.25 
      @tarojs/rn-runner: 3.6.25 => 3.6.25 
      @tarojs/rn-supporter: 3.6.25 => 3.6.25 
      @tarojs/runtime: 3.6.25 => 3.6.25 
      @tarojs/runtime-rn: 3.6.25 => 3.6.25 
      @tarojs/shared: 3.6.25 => 3.6.25 
      @tarojs/taro: 3.6.25 => 3.6.25 
      @tarojs/taro-loader: 3.6.25 => 3.6.25 
      @tarojs/taro-rn: 3.6.25 => 3.6.25 
      @tarojs/webpack5-runner: 3.6.25 => 3.6.25 
      babel-preset-taro: 3.6.25 => 3.6.25 
      eslint-config-taro: 3.6.25 => 3.6.25 
      expo: ~47.0.3 => 47.0.14 
      react: ^18.1.0 => 18.3.1 
      react-native: ^0.70.1 => 0.70.15 

补充信息

@tarojs/components-rn 的包中,依赖的 @ant-design/react-native 组件为 ^5.0.0

通过 yarn install 安装的版本为 @ant-design/[email protected],在 @ant-design/react-native [email protected] 有进行对 PickerRefactor 导致的不能正常使用 mode=time

$ npm ls @ant-design/react-native
[email protected] /Users/xsl/web/service/nestjs-demo/taro-rn
└─┬ @tarojs/[email protected]
  └─┬ @tarojs/[email protected]
    └── @ant-design/[email protected]

通过添加下面配置可正常使用,把@ant-design/react-native 固定版本为 5.0.4

package.json

+ "resolutions": {
+   "@ant-design/react-native": "5.0.4",
+ }
@taro-bot2 taro-bot2 bot added F-react Framework - React T-rn Target - 编译到 React Native V-3 Version - 3.x labels May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-rn Target - 编译到 React Native V-3 Version - 3.x
Projects
None yet
Development

No branches or pull requests

1 participant