Skip to content

Commit cd6fa67

Browse files
committed
Replace translation with direct call
1 parent 4fe8810 commit cd6fa67

File tree

1 file changed

+3
-1
lines changed
  • android/src/main/java/com/swmansion/rnscreens

1 file changed

+3
-1
lines changed

android/src/main/java/com/swmansion/rnscreens/Screen.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,9 @@ class Screen(
257257
*/
258258
behavior.updateMetrics(height)
259259
layout(this.left, this.bottom - height, this.right, this.bottom)
260-
onSheetYTranslationChanged()
260+
if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
261+
updateScreenSizeFabric(width, height, top + translationY.toInt())
262+
}
261263
}
262264

263265
private fun updateSheetDetentWithoutHeightChangeAnimation(

0 commit comments

Comments
 (0)