-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Description
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