Skip to content

[Due for payment 2026-03-30] [$125] Use valid loading indicator in PhoneNumberPage.tsx #84989

@Julesssss

Description

@Julesssss

Details

As part of the loading indicator standardization, we are preparing to enable shouldUseGoBackButton by default in FullscreenLoadingIndicator. Before that, we need to migrate components where FullscreenLoadingIndicator is used alongside visible navigation to use ActivityIndicator instead, otherwise users would see two back controls (the header back button AND the Go Back button from the loader).

PhoneNumberPage.tsx renders HeaderWithBackButton and FullscreenLoadingIndicator as siblings inside ScreenWrapper. When isLoadingApp is true, the header back button is always visible, so the user can already navigate away. FullscreenLoadingIndicator is unnecessary here and should be replaced with a plain ActivityIndicator.

Solution

Replace FullscreenLoadingIndicator with ActivityIndicator in src/pages/settings/Profile/PersonalDetails/PhoneNumberPage.tsx. The loading state must be pixel-perfect identical after the change, same background color, same opacity, same centered large spinner in the content area below the header.

Before making any changes, read the FullscreenLoadingIndicator component source to understand what styles it applies internally, and make sure the replacement reproduces them exactly. ActivityIndicator is a raw spinner with no layout or background styling, so it should not be used on its own as a fullscreen loading state, the codebase convention is to wrap it in a parent View that provides the layout and background styling.

Parent issue: #69850, summary comment

Issue OwnerCurrent Issue Owner: @mateuuszzzzz

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionEngineeringImprovementItem broken or needs improvement.InternalRequires API changes or must be handled by Expensify staffMelvin TriageAutomatic AI Analysis of an issueTaskWeeklyKSv2

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions