Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update splash screen logic #10808

Merged
merged 9 commits into from
Sep 25, 2024
Merged

Conversation

MounirDhahri
Copy link
Member

Description

This PR makes the following changes:

  • Update react-native-bootsplash to the latest version on both Android and iOS.
  • Update iOS splash screen dismissal logic
    • Old logic: the splash screen dismisses as soon as js is bundled
    • New logic: align with the industry best practices and react-native-bootsplash and dismiss the splash screen from the JS side.

PR Checklist

  • I have tested my changes on iOS and Android.
  • I hid my changes behind a feature flag, or they don't need one.
  • I have included screenshots or videos, or I have not changed the UI.
  • I have added tests, or my changes don't require any.
  • I added an app state migration, or my changes do not require one.
  • I have documented any follow-up work that this PR will require, or it does not require any.
  • I have added a changelog entry below, or my changes do not require one.

To the reviewers 👀

  • I would like at least one of the reviewers to run this PR on the simulator or device.
Changelog updates

Changelog updates

Cross-platform user-facing changes

iOS user-facing changes

Android user-facing changes

Dev changes

  • update splash screen logic - mounir

Need help with something? Have a look at our docs, or get in touch with us.

@MounirDhahri MounirDhahri self-assigned this Sep 18, 2024
@ArtsyOpenSource
Copy link
Contributor

ArtsyOpenSource commented Sep 18, 2024

Warnings
⚠️

❌ **It seems like you added some non WebP images to Eigen, please convert them to WebPs using source images/script.sh script **

This PR contains the following changes:

  • Dev changes (update splash screen logic - mounir)

Generated by 🚫 dangerJS against 5a2958a

Comment on lines 58 to 60

RNBootSplash.init(this, R.style.BootTheme);

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we had to refactor this file on the rn bump pr to be kotlin but I bet that bootsplash will have this line for kotlin as well, you might wanna rebase to test it out again

@MounirDhahri MounirDhahri marked this pull request as ready for review September 23, 2024 13:38
@MounirDhahri
Copy link
Member Author

Please let me know if there is something I can adjust here - I tested this locally and everything seemed fine for me. I will create betas as well to test things further

@@ -495,6 +496,12 @@ export const modules = defineModules({
HomeContainer,
{
isRootViewForTabName: "home",
screenOptions: {
statusBarColor: "red",
Copy link
Contributor

@brainbicycle brainbicycle Sep 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

red? dev change?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oupsie

}
if (isLoggedIn && Platform.OS === "android") {
ArtsyNativeModule.setNavigationBarColor(DEFAULT_NAVIGATION_BAR_COLOR)
ArtsyNativeModule.setAppLightContrast(false)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

styling and orientation lock no longer necessary?

brainbicycle
brainbicycle previously approved these changes Sep 25, 2024
Copy link
Contributor

@brainbicycle brainbicycle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me, a couple questions about some removed code I wasn't clear on. Thanks!

@MounirDhahri MounirDhahri added the Squash On Green A label to indicate that Peril should squash-merge this PR when all statuses are green label Sep 25, 2024
@artsy-peril artsy-peril bot merged commit 83ee174 into main Sep 25, 2024
7 checks passed
@artsy-peril artsy-peril bot deleted the feat/upgrade-rn-splash-screen branch September 25, 2024 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Squash On Green A label to indicate that Peril should squash-merge this PR when all statuses are green
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants