Skip to content

Commit

Permalink
Remove problematic opacity style from container animatedStyle.
Browse files Browse the repository at this point in the history
This style was originally added to address some lingering-sheet behavior, however, it seems that it also causes some kind of race condition or Reanimated bug. The presence of this opacity rule can cause the container to disappear on occasion. Others independently discovered the same problem here: gorhom#719 (comment)

Since we can't seem to trigger the original problematic behavior, we are reverting this opacity rule.
  • Loading branch information
huderlem authored and yayvery committed Feb 24, 2024
1 parent 06cd731 commit c3dff6e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/components/bottomSheet/BottomSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1190,8 +1190,6 @@ const BottomSheetComponent = forwardRef<BottomSheet, BottomSheetProps>(
//#region styles
const containerAnimatedStyle = useAnimatedStyle(
() => ({
opacity:
Platform.OS === 'android' && animatedIndex.value === -1 ? 0 : 1,
transform: [
{
translateY: animatedPosition.value,
Expand Down

0 comments on commit c3dff6e

Please sign in to comment.