Skip to content

Commit

Permalink
Remove no longer used DimmingFragment
Browse files Browse the repository at this point in the history
  • Loading branch information
kkafar committed Jan 30, 2025
1 parent 121aefe commit e19210b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 504 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import com.facebook.react.bridge.UiThreadUtil
import com.facebook.react.uimanager.UIManagerHelper
import com.facebook.react.uimanager.events.Event
import com.facebook.react.uimanager.events.EventDispatcher
import com.swmansion.rnscreens.bottomsheet.DimmingFragment
import com.swmansion.rnscreens.events.HeaderBackButtonClickedEvent
import com.swmansion.rnscreens.events.ScreenAppearEvent
import com.swmansion.rnscreens.events.ScreenDisappearEvent
Expand Down Expand Up @@ -290,12 +289,7 @@ open class ScreenFragment :
// since we subscribe to parent's animation start/end and dispatch events in child from there
// check for `isTransitioning` should be enough since the child's animation should take only
// 20ms due to always being `StackAnimation.NONE` when nested stack being pushed
val parent =
if (parentFragment is DimmingFragment) {
parentFragment?.parentFragment
} else {
parentFragment
}
val parent = parentFragment
if (parent == null || (parent is ScreenFragment && !parent.isTransitioning)) {
// onViewAnimationStart/End is triggered from View#onAnimationStart/End method of the fragment's root
// view. We override an appropriate method of the StackFragment's
Expand Down
Loading

0 comments on commit e19210b

Please sign in to comment.