Skip to content

Commit

Permalink
Replace SharedTransitionLayout with Box where no sharedElement is sup…
Browse files Browse the repository at this point in the history
…ported
  • Loading branch information
KovalevAndrey committed Apr 26, 2024
1 parent e2b687a commit 984a512
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package com.bumble.appyx.core.composable
import android.annotation.SuppressLint
import androidx.compose.animation.ExperimentalSharedTransitionApi
import androidx.compose.animation.SharedTransitionLayout
import androidx.compose.foundation.layout.Box
import androidx.compose.runtime.Composable
import androidx.compose.runtime.CompositionLocalProvider
import androidx.compose.runtime.LaunchedEffect
Expand Down Expand Up @@ -76,7 +77,7 @@ inline fun <reified NavTarget : Any, State> ParentNode<NavTarget>.Children(
}
}
} else {
SharedTransitionLayout(modifier = modifier
Box(modifier = modifier
.onSizeChanged {
transitionBounds = it
}
Expand Down

0 comments on commit 984a512

Please sign in to comment.