[Android] Visibility Artifact During Page Transition and Possible Solution #1968
Labels
Missing info
The user didn't precise the problem enough
Platform: Android
This issue is specific to Android
Repro provided
A reproduction with a snack or repo is provided
The Issue
In the new Android 13 screen transition, an issue arises when the new screen pushes the old one, causing a white or black layer to appear between them. While this problem may exist in the old screen transition, it becomes more noticeable in the new version.
https://github.com/alabsi91/rn-screens-android-transitions-animation-fix
before.mp4
after.mp4
The Fix
Fortunately, I have fixed this issue by implementing the following changes:
android\app\src\main\res\drawable\alpha_screen.xml
.android\app\src\main\res\values\styles.xml
.<resources> <!-- Base application theme. --> <style name="AppTheme" parent="Theme.AppCompat.DayNight.NoActionBar"> <!-- Customize your theme here. --> <item name="android:editTextBackground">@drawable/rn_edit_text_material</item> + <item name="android:windowBackground">@drawable/alpha_screen</item> </style> </resources>
Steps to reproduce
react-navigation
Snack or a link to a repository
https://github.com/alabsi91/rn-screens-android-transitions-animation-fix
Screens version
3.27.0
React Native version
0.72.6
Platforms
Android
JavaScript runtime
Hermes
Workflow
React Native (without Expo)
Architecture
Paper (Old Architecture)
Build type
Debug mode
Device
Android emulator
Device model
Android 13
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: