We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
react-native的0.73.7版本中,Android在回调函数使用 Animated.event( [{nativeEvent: {contentOffset: {y: scroll}}}]) 修改scroll的值不生效,后来在
Animated.event( [{nativeEvent: {contentOffset: {y: scroll}}}])
{ useNativeDriver: true, listener: (e: any) => { const y = e.nativeEvent.contentOffset.y; Platform.OS === 'android' && scroll.setValue(y) } 修改,经测试有效,iOS的没问题。
{ useNativeDriver: true, listener: (e: any) => { const y = e.nativeEvent.contentOffset.y; Platform.OS === 'android' && scroll.setValue(y) }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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的没问题。
The text was updated successfully, but these errors were encountered: