-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
iOS - Login - The splash screen glitches and flashes on launch #35185
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
c512dd0
iOS - Login - The splash screen glitches and flashes on launch
ikevin127 f8d689d
Merge branch 'main' of https://github.com/ikevin127/Expensify into fi…
ikevin127 2f9aadf
fixed reassure tests
ikevin127 0186486
Merge branch 'main' of https://github.com/Expensify/App into fix/34696
ikevin127 cae96fa
reasurre tests fix - optional chaining
ikevin127 b3be5cd
Merge branch 'main' of https://github.com/Expensify/App into fix/34696
ikevin127 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import {useContext} from 'react'; | ||
import {SplashScreenHiddenContext} from '@src/Expensify'; | ||
|
||
type SplashScreenHiddenContextType = {isSplashHidden: boolean}; | ||
|
||
export default function useIsSplashHidden() { | ||
const {isSplashHidden} = useContext(SplashScreenHiddenContext) as SplashScreenHiddenContextType; | ||
return isSplashHidden; | ||
} | ||
|
||
export type {SplashScreenHiddenContextType}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perf tests failing if this was added?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More context on Slack: https://expensify.slack.com/archives/C01GTK53T8Q/p1706732738472299
SignInPage reassure test was failing with this error:
And I was told to remove this part as:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On recent sync w/ main the
createNavigationContainerRef
was added back, but tests on this PR were still failing since thenavigationRef.getState()
mock was missing, I added the mock and they still failed because of this line:App/src/libs/Navigation/getTopmostReportId.ts
Line 19 in 3a702ce
where state.routes was undefined and .filter was failing. I added optional chaining there and they pass now.