File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
java/com/swmansion/rnscreens Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package com.swmansion.rnscreens
2
2
3
3
import android.content.Context
4
4
import android.graphics.Canvas
5
+ import android.os.Build
5
6
import android.view.View
6
7
import com.facebook.react.bridge.ReactContext
7
8
import com.facebook.react.uimanager.UIManagerHelper
@@ -335,8 +336,10 @@ class ScreenStack(context: Context?) : ScreenContainer(context) {
335
336
fragmentWrapper.screen.stackPresentation == = Screen .StackPresentation .TRANSPARENT_MODAL
336
337
337
338
private fun needsDrawReordering (fragmentWrapper : ScreenFragmentWrapper ): Boolean =
338
- fragmentWrapper.screen.stackAnimation == = StackAnimation .SLIDE_FROM_BOTTOM ||
339
+ // On Android sdk 33 and above the animation is different and requires draw reordering.
340
+ Build .VERSION .SDK_INT >= Build .VERSION_CODES .TIRAMISU ||
341
+ fragmentWrapper.screen.stackAnimation == = StackAnimation .SLIDE_FROM_BOTTOM ||
339
342
fragmentWrapper.screen.stackAnimation == = StackAnimation .FADE_FROM_BOTTOM ||
340
- fragmentWrapper.screen.stackAnimation == = StackAnimation .IOS
343
+ fragmentWrapper.screen.stackAnimation == = StackAnimation .IOS
341
344
}
342
345
}
Original file line number Diff line number Diff line change 19
19
android : fillEnabled =" true"
20
20
android : fillBefore =" true"
21
21
android : fillAfter =" true"
22
- android : startOffset =" 0"
23
22
android : interpolator =" @android:interpolator/fast_out_extra_slow_in"
24
23
android : duration =" 450" />
25
24
Original file line number Diff line number Diff line change 5
5
6
6
<alpha
7
7
android : fromAlpha =" 1.0"
8
- android : toAlpha =" 0 .0"
8
+ android : toAlpha =" 1 .0"
9
9
android : fillEnabled =" true"
10
10
android : fillBefore =" true"
11
11
android : fillAfter =" true"
12
12
android : interpolator =" @anim/rns_standard_accelerate_interpolator"
13
13
android : startOffset =" 0"
14
- android : duration =" 83 " />
14
+ android : duration =" 450 " />
15
15
16
16
<translate
17
17
android : fromXDelta =" 0"
You can’t perform that action at this time.
0 commit comments