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

scrollview 支持滚动到指定位置吗,react native #9926

Closed
HeNanBing opened this issue Jul 29, 2021 · 1 comment
Closed

scrollview 支持滚动到指定位置吗,react native #9926

HeNanBing opened this issue Jul 29, 2021 · 1 comment
Labels
F-react Framework - React T-rn Target - 编译到 React Native V-3 Version - 3.x

Comments

@HeNanBing
Copy link

相关平台

React Native

使用框架: React

复现步骤

期望结果

支持滚动到指定位置

实际结果

不支持

环境信息

 Taro CLI 3.2.13 environment info:
    System:
      OS: macOS 10.15.7
      Shell: 5.7.1 - /bin/zsh
    Binaries:
      Node: 14.15.1 - /usr/local/bin/node
      Yarn: 1.22.10 - /usr/local/bin/yarn
      npm: 6.14.8 - /usr/local/bin/npm
    npmPackages:
      @tarojs/components: 3.2.10 => 3.2.10 
      @tarojs/mini-runner: 3.2.10 => 3.2.10 
      @tarojs/react: 3.2.10 => 3.2.10 
      @tarojs/runtime: 3.2.10 => 3.2.10 
      @tarojs/taro: 3.2.10 => 3.2.10 
      @tarojs/webpack-runner: 3.2.10 => 3.2.10 
      babel-preset-taro: ^3.2.10 => 3.2.13 
      eslint-config-taro: 3.2.10 => 3.2.10 
      react: ^17.0.2 => 17.0.2 
      react-native: ^0.64.2 => 0.64.2 

@taro-bot2 taro-bot2 bot added F-react Framework - React T-rn Target - 编译到 React Native V-3 Version - 3.x labels Jul 29, 2021
@iChengbo
Copy link
Collaborator

@HeNanBing 页面滚动的话可以使用 Taro.pageScrollTo 滚动到指定位置,另外,Scrollview 的属性做了透传,可以参考 RN 相关文档 https://reactnative.cn/docs/scrollview 使用

@iChengbo iChengbo closed this as completed Aug 2, 2021
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

2 participants