Skip to content

Commit

Permalink
fix: on mount flicker on fixed sheet
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhom committed May 23, 2021
1 parent 993f936 commit 48c4988
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/components/bottomSheet/BottomSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -910,8 +910,7 @@ const BottomSheetComponent = forwardRef<BottomSheet, BottomSheetProps>(
if (animateOnMount) {
animateToPosition(nextPosition);
} else {
// to snap sheet to position without duration
animateToPosition(nextPosition, 0, { duration: 0 });
animatedPosition.value = nextPosition;
}
isAnimatedOnMount.value = true;
}
Expand Down Expand Up @@ -1169,13 +1168,11 @@ const BottomSheetComponent = forwardRef<BottomSheet, BottomSheetProps>(
animatedIndex,
animatedCurrentIndex,
animatedPosition,
_animatedContainerHeight,
animatedContainerHeight,
animatedSheetHeight,
animatedHandleHeight,
animatedContentHeight,
keyboardHeight,
WINDOW_HEIGHT,
isLayoutCalculated,
isInTemporaryPosition,
}}
Expand Down

0 comments on commit 48c4988

Please sign in to comment.