From 00543fb35201e34dfb5e73e22ff12d274a1ea5f5 Mon Sep 17 00:00:00 2001 From: Kacper Kafara Date: Thu, 13 Apr 2023 11:19:58 +0200 Subject: [PATCH] chore: improve Android 13 animations (#1756) ## Description New Android animations introduced in https://github.com/software-mansion/react-native-screens/pull/1693 were laggy (especially enter-out / enter-in animations). This was caused by [these lines](https://cs.android.com/android/platform/superproject/+/android-platform-13.0.0_r6:frameworks/base/core/res/res/anim/activity_open_exit.xml;l=23-24) in Android source code -- alpha was not animated. ## Changes Set more reasonable target value for alpha animation & explicitly set start offset on enter out animation. ## Test code and steps to reproduce See #1693 for description. ## Checklist - [x] Ensured that CI passes (Android e2e do fail for unrelated reasons) --- android/src/main/res/v33/anim-v33/rns_default_enter_in.xml | 3 ++- android/src/main/res/v33/anim-v33/rns_default_enter_out.xml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/android/src/main/res/v33/anim-v33/rns_default_enter_in.xml b/android/src/main/res/v33/anim-v33/rns_default_enter_in.xml index 26fe978e68..654c80bfbe 100644 --- a/android/src/main/res/v33/anim-v33/rns_default_enter_in.xml +++ b/android/src/main/res/v33/anim-v33/rns_default_enter_in.xml @@ -4,7 +4,7 @@ android:shareInterpolator="false"> diff --git a/android/src/main/res/v33/anim-v33/rns_default_enter_out.xml b/android/src/main/res/v33/anim-v33/rns_default_enter_out.xml index e7dd72bba5..965d47f6c3 100644 --- a/android/src/main/res/v33/anim-v33/rns_default_enter_out.xml +++ b/android/src/main/res/v33/anim-v33/rns_default_enter_out.xml @@ -5,7 +5,7 @@