taro rn: View组件的hoverStyle状态不取消

3npbholx  于 2个月前  发布在  其他
关注(0)|答案(2)|浏览(33)

相关平台

React Native

使用框架: React

复现步骤

<View
        hoverStyle={{ borderColor: "red" }}
        style={{ borderColor: "blue", borderWidth: 2 }}
      ></View>
      <Button
        onClick={() => {}}
        hoverStyle={{ borderColor: "red" }}
        style={{ borderColor: "blue", borderWidth: 2 }}
      >
        btn
      </Button>

结果

另外: Button/View(ClickableSimplified) 重复实现?

期望结果

hover状态正常

实际结果

不取消

环境信息

👽 Taro v3.6.23

  Taro CLI 3.6.23 environment info:
    System:
      OS: Linux 5.4 Ubuntu 20.04.6 LTS (Focal Fossa)
      Shell: 5.8 - /usr/bin/zsh
    Binaries:
      Node: 20.9.0 - /opt/nodejs/node/bin/node
      Yarn: 1.22.19 - /opt/nodejs/node/bin/yarn
      npm: 10.1.0 - /opt/nodejs/node/bin/npm
    npmPackages:
      @tarojs/cli: 3.6.19 => 3.6.19 
      @tarojs/components: 3.6.19 => 3.6.19 
      @tarojs/components-rn: ^3.6.23 => 3.6.23 
      @tarojs/helper: 3.6.19 => 3.6.19 
      @tarojs/plugin-framework-react: 3.6.19 => 3.6.19 
      @tarojs/plugin-platform-alipay: 3.6.19 => 3.6.19 
      @tarojs/plugin-platform-h5: 3.6.19 => 3.6.19 
      @tarojs/plugin-platform-jd: 3.6.19 => 3.6.19 
      @tarojs/plugin-platform-qq: 3.6.19 => 3.6.19 
      @tarojs/plugin-platform-swan: 3.6.19 => 3.6.19 
      @tarojs/plugin-platform-tt: 3.6.19 => 3.6.19 
      @tarojs/plugin-platform-weapp: 3.6.19 => 3.6.19 
      @tarojs/react: 3.6.19 => 3.6.19 
      @tarojs/rn-runner: ^3.6.23 => 3.6.23 
      @tarojs/rn-supporter: ^3.6.23 => 3.6.23 
      @tarojs/runtime: 3.6.19 => 3.6.19 
      @tarojs/runtime-rn: ^3.6.23 => 3.6.23 
      @tarojs/shared: 3.6.19 => 3.6.19 
      @tarojs/taro: 3.6.19 => 3.6.19 
      @tarojs/taro-loader: 3.6.19 => 3.6.19 
      @tarojs/taro-rn: ^3.6.23 => 3.6.23 
      @tarojs/webpack5-runner: 3.6.19 => 3.6.19 
      babel-preset-taro: 3.6.19 => 3.6.19 
      eslint-config-taro: 3.6.19 => 3.6.19 
      expo: ~47.0.3 => 47.0.14 
      react: ^18.1.0 => 18.2.0 
      react-native: ^0.70.5 => 0.70.15
xcitsw88

xcitsw881#

还补充一个bug:

style={{ borderColor: "blue", borderWidth: '2px' }}

2px 转换失败

p4rjhz4m

p4rjhz4m2#

ps: 升级到3.6.24后,状态问题已经解决。

相关问题