@@ -180,7 +180,7 @@ function ScreenWrapper(
180180 enableEdgeToEdgeBottomSafeAreaPadding : enableEdgeToEdgeBottomSafeAreaPaddingProp ,
181181 shouldMobileOfflineIndicatorStickToBottom : shouldMobileOfflineIndicatorStickToBottomProp ,
182182 shouldKeyboardOffsetBottomSafeAreaPadding : shouldKeyboardOffsetBottomSafeAreaPaddingProp ,
183- isOfflineIndicatorTranslucent : isOfflineIndicatorTranslucentProp ,
183+ isOfflineIndicatorTranslucent = false ,
184184 } : ScreenWrapperProps ,
185185 ref : ForwardedRef < View > ,
186186) {
@@ -201,7 +201,7 @@ function ScreenWrapper(
201201 const { setRootStatusBarEnabled} = useContext ( CustomStatusBarAndBackgroundContext ) ;
202202 const { initialURL} = useContext ( InitialURLContext ) ;
203203
204- const [ isSingleNewDotEntry ] = useOnyx ( ONYXKEYS . IS_SINGLE_NEW_DOT_ENTRY ) ;
204+ const [ isSingleNewDotEntry ] = useOnyx ( ONYXKEYS . IS_SINGLE_NEW_DOT_ENTRY , { canBeMissing : true } ) ;
205205
206206 // When the `enableEdgeToEdgeBottomSafeAreaPadding` prop is explicitly set, we enable edge-to-edge mode.
207207 const isUsingEdgeToEdgeMode = enableEdgeToEdgeBottomSafeAreaPaddingProp !== undefined ;
@@ -210,7 +210,6 @@ function ScreenWrapper(
210210 // We enable all of these flags by default, if we are using edge-to-edge mode.
211211 const shouldMobileOfflineIndicatorStickToBottom = shouldMobileOfflineIndicatorStickToBottomProp ?? isUsingEdgeToEdgeMode ;
212212 const shouldKeyboardOffsetBottomSafeAreaPadding = shouldKeyboardOffsetBottomSafeAreaPaddingProp ?? isUsingEdgeToEdgeMode ;
213- const isOfflineIndicatorTranslucent = isOfflineIndicatorTranslucentProp ?? isUsingEdgeToEdgeMode ;
214213
215214 // We disable legacy bottom safe area padding handling, if we are using edge-to-edge mode.
216215 const includeSafeAreaPaddingBottom = isUsingEdgeToEdgeMode ? false : includeSafeAreaPaddingBottomProp ;
@@ -362,16 +361,16 @@ function ScreenWrapper(
362361 * This style applies the background color of the mobile offline indicator.
363362 * When there is not bottom content, and the device either has soft keys or is offline,
364363 * the background style is applied.
365- * By default, the background color of the mobile offline indicator is translucent .
366- * If `isOfflineIndicatorTranslucent` is set to true, an opaque background color is applied.
364+ * By default, the background color of the mobile offline indicator is opaque .
365+ * If `isOfflineIndicatorTranslucent` is set to true, a translucent background color is applied.
367366 */
368367 const mobileOfflineIndicatorBackgroundStyle = useMemo ( ( ) => {
369- const showOfflineIndicatorBackground = ! extraContent && ( isSoftKeyNavigation || isOffline ) ;
368+ const showOfflineIndicatorBackground = ! extraContent && isOffline ;
370369 if ( ! showOfflineIndicatorBackground ) {
371370 return undefined ;
372371 }
373- return isOfflineIndicatorTranslucent ? styles . navigationBarBG : styles . appBG ;
374- } , [ extraContent , isOffline , isOfflineIndicatorTranslucent , isSoftKeyNavigation , styles . appBG , styles . navigationBarBG ] ) ;
372+ return isOfflineIndicatorTranslucent ? styles . translucentNavigationBarBG : styles . appBG ;
373+ } , [ extraContent , isOffline , isOfflineIndicatorTranslucent , styles . appBG , styles . translucentNavigationBarBG ] ) ;
375374
376375 /** In edge-to-edge mode, we always want to apply the bottom safe area padding to the mobile offline indicator. */
377376 const hasMobileOfflineIndicatorBottomSafeAreaPadding = isUsingEdgeToEdgeMode ? enableEdgeToEdgeBottomSafeAreaPadding : ! includeSafeAreaPaddingBottom ;
0 commit comments