Skip to content

Commit

Permalink
Fix new splash screen flicker
Browse files Browse the repository at this point in the history
  • Loading branch information
janicduplessis committed May 24, 2023
1 parent d8eba8b commit 3b38058
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion android/app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<resources>
<color name="bootsplash_background">#03D47C</color>
<color name="status_bar_background">#061B09</color>
<color name="white">#FFFFFF</color>
<color name="accent">#03D47C</color>
<color name="dark">#0b1b34</color>
Expand Down
2 changes: 1 addition & 1 deletion android/app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
</style>

<style name="BootTheme" parent="Theme.SplashScreen">
<item name="android:statusBarColor">@color/status_bar_background</item>
<item name="android:statusBarColor">@android:color/transparent</item>
<item name="windowSplashScreenAnimatedIcon">@mipmap/bootsplash_logo</item>
<item name="windowSplashScreenBackground">@color/bootsplash_background</item>
</style>
Expand Down
1 change: 0 additions & 1 deletion src/components/SplashScreenHider/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ const SplashScreenHider = (props) => {
opacityStyle,
{
// Apply negative margins to center the logo on window (instead of screen)
marginTop: -(StatusBar.currentHeight || 0),
marginBottom: -(BootSplash.navigationBarHeight || 0),
},
]}
Expand Down

0 comments on commit 3b38058

Please sign in to comment.