-
Notifications
You must be signed in to change notification settings - Fork 392
feat: scrollView支持自定义下拉刷新节点 #1906
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
Conversation
| const [refreshing, setRefreshing] = useState(false) | ||
| const [enableScroll, setEnableScroll] = useState(true) | ||
| const enableScrollValue = useSharedValue(true) | ||
| const lastEnableScrollValue = useSharedValue(true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
为啥需要个last
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
考虑通过animatedProps来控制属性更新
| ScrollViewContext.Provider, | ||
| { value: contextValue }, | ||
| wrapChildren( | ||
| extendObject(props, { children: otherContent }), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
避免修改props对象
No description provided.