Skip to content

Commit

Permalink
Fix filter flicker
Browse files Browse the repository at this point in the history
  • Loading branch information
robertying committed Oct 23, 2022
1 parent 6fc6a84 commit 72ace01
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/Filter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const Filter: React.FC<React.PropsWithChildren<FilterProps>> = ({
});
} else {
position.value = withTiming(0, {
duration: 200,
duration: 100,
easing: Easing.in(Easing.ease),
});
}
Expand Down Expand Up @@ -144,7 +144,7 @@ const Filter: React.FC<React.PropsWithChildren<FilterProps>> = ({
layout.measured || !visible
? [styles.absolute, transformStyle]
: null,
!layout.measured && !visible ? {opacity: 0} : null,
!visible ? {opacity: 0} : null,
]}>
{unfinishedCount !== undefined ? (
<ListItem
Expand Down Expand Up @@ -211,6 +211,7 @@ const styles = StyleSheet.create({
left: 0,
right: 0,
zIndex: 1,
elevation: 2,
},
listItem: {
paddingHorizontal: 16,
Expand Down

0 comments on commit 72ace01

Please sign in to comment.