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

RN端Swiper组件无法触发onChange事件 #17205

Open
AnchenMo opened this issue Jan 20, 2025 · 0 comments
Open

RN端Swiper组件无法触发onChange事件 #17205

AnchenMo opened this issue Jan 20, 2025 · 0 comments

Comments

@AnchenMo
Copy link

相关平台

React Native

复现仓库

https://gist.github.com/AnchenMo/bfd4bf457fed432eb96e860b07575876

使用框架: React

复现步骤

rn运行

期望结果

swiper触发onchange时能正常触发回调函数,current值正常变化

实际结果

swiper触发onchange时不触发回调函数,current值不变

环境信息

  Taro CLI 3.6.33 environment info:
    "dependencies": {
    "@babel/runtime": "^7.20.0",
    "@jdh-cross/design": "^1.0.93",
    "@jdh-cross/sdk-core": "^1.0.38",
    "@jdh-cross/sdk-utils": "^1.0.17",
    "@jdh/laputa-taro-sdk": "^1.8.32",
    "@jdreact/jdreact-jsbundle-commonpack": "2.1.24",
    "@jdtaro/plugin-platform-jdrn": "2.0.5",
    "@legos/js-security-jdxcx": "^0.1.19",
    "@legos/js-security-v3": "^0.2.1",
    "@nutui/icons-react-taro": "^1.0.5",
    "@pmmmwh/react-refresh-webpack-plugin": "^0.5.13",
    "@tarojs/components": "3.6.33",
    "@tarojs/helper": "3.6.33",
    "@tarojs/plugin-framework-react": "3.6.33",
    "@tarojs/plugin-html": "3.6.33",
    "@tarojs/plugin-platform-alipay": "3.6.33",
    "@tarojs/plugin-platform-h5": "3.6.33",
    "@tarojs/plugin-platform-jd": "3.6.33",
    "@tarojs/plugin-platform-qq": "3.6.33",
    "@tarojs/plugin-platform-swan": "3.6.33",
    "@tarojs/plugin-platform-tt": "3.6.33",
    "@tarojs/plugin-platform-weapp": "3.6.33",
    "@tarojs/react": "3.6.33",
    "@tarojs/runtime": "3.6.33",
    "@tarojs/shared": "3.6.33",
    "@tarojs/taro": "3.6.33",
    "@tarojs/taro-rn": "3.6.33",
    "object-path": "^0.11.8",
    "react": "18.2.0",
    "react-dom": "18.2.0",
    "react-native": "0.72.3",
    "react-refresh": "^0.14.2",
    "react-router-dom": "^6.26.1",
    "tsconfig-paths-webpack-plugin": "^4.1.0",
    "weixin-js-sdk": "^1.6.5"
  },
  "devDependencies": {
    "@babel/core": "^7.20.0",
    "@commitlint/cli": "^19.3.0",
    "@commitlint/config-conventional": "^19.2.2",
    "@dongdesign/inject-jd-platform-styles": "1.0.4",
    "@dongdesign/inject-ui-styles": "1.0.4",
    "@tarojs/cli": "3.6.33",
    "@tarojs/taro-loader": "3.6.33",
    "@tarojs/vite-runner": "4.0.5",
    "@tarojs/webpack5-runner": "3.6.33",
    "@types/node": "^18.15.11",
    "@types/react": "^18.2.6",
    "@types/webpack-env": "^1.13.6",
    "@typescript-eslint/eslint-plugin": "^7.7.0",
    "@typescript-eslint/parser": "^7.7.0",
    "babel-preset-taro": "3.6.33",
    "eslint": "^8.19.0",
    "eslint-config-standard": "^17.1.0",
    "eslint-config-taro": "3.6.33",
    "eslint-plugin-import": "^2.12.0",
    "eslint-plugin-n": "^17.7.0",
    "eslint-plugin-promise": "^6.1.1",
    "eslint-plugin-react": "^7.8.2",
    "eslint-plugin-react-hooks": "^4.2.0",
    "eslint-plugin-simple-import-sort": "^12.1.0",
    "husky": "^9.0.11",
    "lint-staged": "^15.2.2",
    "postcss": "^8.4.18",
    "stylelint": "16.4.0",
    "typescript": "^5.1.3",
    "webpack": "5.91.0"
  },
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

No branches or pull requests

1 participant