From 1e8552149d147ddc263fdef4cb236b926566c8c3 Mon Sep 17 00:00:00 2001 From: Joseph Hale Date: Sat, 7 Jun 2025 22:28:58 -0700 Subject: [PATCH] fix: Restore Splash Screen react-native-bootsplash had lots of updates from v4 to v6. It was easier to remove it during the upgrade then re-add it now. --- App.tsx | 4 +- android/app/src/main/AndroidManifest.xml | 42 +- .../dev/jhale/binaryclock/MainActivity.kt | 9 + .../res/drawable-hdpi/bootsplash_logo.png | Bin 0 -> 3694 bytes .../res/drawable-mdpi/bootsplash_logo.png | Bin 0 -> 2957 bytes .../res/drawable-xhdpi/bootsplash_logo.png | Bin 0 -> 5452 bytes .../res/drawable-xxhdpi/bootsplash_logo.png | Bin 0 -> 8776 bytes .../res/drawable-xxxhdpi/bootsplash_logo.png | Bin 0 -> 12042 bytes android/app/src/main/res/values/colors.xml | 3 + android/app/src/main/res/values/styles.xml | 7 +- ios/BinaryClock.xcodeproj/project.pbxproj | 8 + .../xcschemes/BinaryClock.xcscheme | 6 +- ios/BinaryClock/AppDelegate.swift | 5 + ios/BinaryClock/BootSplash.storyboard | 46 + .../Contents.json | 20 + .../Contents.json | 23 + .../logo-6f8b9f.png | Bin 0 -> 2715 bytes .../logo-6f8b9f@2x.png | Bin 0 -> 4540 bytes .../logo-6f8b9f@3x.png | Bin 0 -> 7362 bytes ios/BinaryClock/Info.plist | 3 +- ios/Podfile.lock | 25 + package-lock.json | 1591 ++++++++++++++++- package.json | 2 + 23 files changed, 1675 insertions(+), 119 deletions(-) create mode 100644 android/app/src/main/res/drawable-hdpi/bootsplash_logo.png create mode 100644 android/app/src/main/res/drawable-mdpi/bootsplash_logo.png create mode 100644 android/app/src/main/res/drawable-xhdpi/bootsplash_logo.png create mode 100644 android/app/src/main/res/drawable-xxhdpi/bootsplash_logo.png create mode 100644 android/app/src/main/res/drawable-xxxhdpi/bootsplash_logo.png create mode 100644 android/app/src/main/res/values/colors.xml create mode 100644 ios/BinaryClock/BootSplash.storyboard create mode 100644 ios/BinaryClock/Colors.xcassets/BootSplashBackground-6f8b9f.colorset/Contents.json create mode 100644 ios/BinaryClock/Images.xcassets/BootSplashLogo-6f8b9f.imageset/Contents.json create mode 100644 ios/BinaryClock/Images.xcassets/BootSplashLogo-6f8b9f.imageset/logo-6f8b9f.png create mode 100644 ios/BinaryClock/Images.xcassets/BootSplashLogo-6f8b9f.imageset/logo-6f8b9f@2x.png create mode 100644 ios/BinaryClock/Images.xcassets/BootSplashLogo-6f8b9f.imageset/logo-6f8b9f@3x.png diff --git a/App.tsx b/App.tsx index 6cf58d6..d151e55 100644 --- a/App.tsx +++ b/App.tsx @@ -5,11 +5,13 @@ // file, You can obtain one at http://mozilla.org/MPL/2.0/. import BinaryClockScreen from './src/pages/BinaryClockScreen'; +import BootSplash from "react-native-bootsplash"; import KeepAwake from '@sayem314/react-native-keep-awake'; import React from 'react'; import { StatusBar } from 'react-native'; -const App = () => { +const App = () => { + BootSplash.hide({fade: true}); return ( <>