Skip to content

Conversation

@yandadaFreedom
Copy link
Collaborator

@yandadaFreedom yandadaFreedom commented Mar 19, 2025

No description provided.

@yandadaFreedom yandadaFreedom changed the title feat: scrollView feat: scrollView支持自定义刷新节点 Mar 19, 2025
@yandadaFreedom yandadaFreedom changed the title feat: scrollView支持自定义刷新节点 feat: scrollView支持自定义下拉刷新节点 Mar 19, 2025
const [refreshing, setRefreshing] = useState(false)
const [enableScroll, setEnableScroll] = useState(true)
const enableScrollValue = useSharedValue(true)
const lastEnableScrollValue = useSharedValue(true)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

为啥需要个last

Copy link
Collaborator

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 }),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

避免修改props对象

@hiyuki hiyuki merged commit a90e217 into master Apr 14, 2025
6 checks passed
@hiyuki hiyuki deleted the feat-refreshcontrol-slot branch April 14, 2025 08:29
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

Successfully merging this pull request may close these issues.

3 participants