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

NestedScrollViewHeader的OnScroll回调函数 #40

Open
weiningtry7 opened this issue Aug 10, 2024 · 0 comments
Open

NestedScrollViewHeader的OnScroll回调函数 #40

weiningtry7 opened this issue Aug 10, 2024 · 0 comments

Comments

@weiningtry7
Copy link

weiningtry7 commented Aug 10, 2024

react-native的0.73.7版本中,Android在回调函数使用 Animated.event( [{nativeEvent: {contentOffset: {y: scroll}}}])
修改scroll的值不生效,后来在

{ useNativeDriver: true, listener: (e: any) => { const y = e.nativeEvent.contentOffset.y; Platform.OS === 'android' && scroll.setValue(y) }
修改,经测试有效,iOS的没问题。

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