Skip to content

Commit

Permalink
feat: apply fullScrollY range; apply custom refreshControl
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukkub committed Sep 20, 2020
1 parent 4721df9 commit 25537d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ class DraggableFlatList<T> extends React.Component<Props<T>, State> {
cond(
greaterOrEq(contentOffset.y, 0),
[set(this.props.onScrollY, contentOffset.y)],
set(this.props.onScrollY, 0)
this.props.fullScrollY ? [set(this.props.onScrollY, contentOffset.y)] : set(this.props.onScrollY, 0)
),
cond(
and(
Expand Down Expand Up @@ -959,7 +959,7 @@ class DraggableFlatList<T> extends React.Component<Props<T>, State> {
scrollEventThrottle={16}
snapToInterval={50}
refreshControl={
this.state.allowMount && (
this.state.allowMount ? this.props.customRefreshControl ||
<RefreshControl
refreshing={this.props.refreshing || false}
onRefresh={() =>
Expand All @@ -969,7 +969,7 @@ class DraggableFlatList<T> extends React.Component<Props<T>, State> {
}
tintColor={this.props.spinnerColor || "#31314F"}
/>
)
: null
}
/>
{!!hoverComponent && this.renderHoverComponent()}
Expand Down

0 comments on commit 25537d1

Please sign in to comment.