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

NestedScrollView如在在A的onPress方法中,滑动到顶部,貌似不支持ref #41

Open
luyuan11233 opened this issue Aug 13, 2024 · 3 comments

Comments

@luyuan11233
Copy link

在如下的代码中,调用该如何滑动到顶部,辛苦大佬答疑

import { NestedScrollView, NestedScrollViewHeader } from '@sdcx/nested-scroll'
const App = () => {
const handlePress = () => {
//todo 如何滑动到顶部
};
return (











)
}

@luyuan11233
Copy link
Author

神奇的代码没了,重新贴一份代码
import { NestedScrollView, NestedScrollViewHeader } from '@sdcx/nested-scroll'

const App = () => {
const handlePress = () => {
//todo 如何滑动到顶部
};
return (











)
}

@luyuan11233
Copy link
Author

贴照片吧
截屏2024-08-13 16 23 38

@Bruce-Ming
Copy link

mark,如何滚动到自定义位置。

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

2 participants