App icon indicating copy to clipboard operation
App copied to clipboard

[$250] iOS - Spend - A blank space appears above the keyboard when the search field is focused

Open applause-bot[bot] opened this issue 2 weeks ago • 59 comments

If you haven’t already, check out our contributing guidelines for onboarding. To join our Slack channel, fill out this form.


Version Number: 9.5.39-0 Reproducible in staging?: Yes Reproducible in production?: Yes If this was caught during regression testing, add the test name, ID and link from BrowserStack: https://test-management.browserstack.com/projects/2219752/test-runs/83789009/folder/57529653/116461986/1974347028?sort=%2Bidentifier Email or phone of affected tester (no customers): n/a Issue reported by: Applause Internal Team Bug source: Exploratory - Significant User Experience Deterioration Device used: iPhone 13 iOS 26.6 App Component: Search

Action Performed:

Preconditions: workspace chat has at leas 3 reports with expenses

  1. Open the app
  2. Navigate to Spend>Drafts
  3. Tap the search input field at the top of the page (Not the 🔍 icon )

Expected Result:

The keyboard should appear directly below the total spend section, without any extra gap

Actual Result:

A blank space appears above the keyboard when the search field is focused

Workaround:

Unknown

Platforms:

  • [ ] Android: App
  • [ ] Android: mWeb Chrome
  • [x] iOS: App
  • [ ] iOS: mWeb Safari
  • [ ] iOS: mWeb Chrome
  • [ ] Windows: Chrome
  • [ ] MacOS: Chrome Safari

Screenshots/Videos

https://github.com/user-attachments/assets/a34fa975-1e0e-459d-a0a5-902d498d7202

View all open jobs on GitHub

Applause Internal Information Exported by: Svetlana Lazutkina Bug ID: 7313498

Upwork Automation - Do Not Edit
Issue OwnerCurrent Issue Owner: @David-2002065

applause-bot[bot] avatar Nov 13 '26 20:11 applause-bot[bot]

While Applause doesn't embed attachments for this bug, here are the links for quick view: https://platform.applause.com/services/links/v1/external/ea7df7834b5aa5dcb44ad7f7ddff8d6ae7111aa746fee3f490b4ac8bab64a8d0

applause-bot[bot] avatar Nov 13 '26 20:11 applause-bot[bot]

Triggered auto assignment to Contributor-plus team member for initial proposal review - @daledah (External)

melvin-bot[bot] avatar Nov 13 '26 20:11 melvin-bot[bot]

Job added to Upwork: https://www.upwork.com/jobs/~022121341096023338912

melvin-bot[bot] avatar Nov 13 '26 20:11 melvin-bot[bot]

⚠️ Preliminary analysis — root cause not yet confirmed.

Findings

The strongest suspect is bottom-tab clearance remaining beneath the Total spend footer when keyboard avoidance moves the screen upward. This would expose blank padding above the keyboard.

I verified the relevant code in the reported 9.5.39-0-staging release, not just current main.

Supporting code evidence

Hypothesis challenge

A simple “duplicate safe-area padding” explanation is not supported: this screen disables its wrapper’s bottom safe-area padding, while keyboard avoidance applies a separate compensating offset (ScreenWrapper:134–144).

Keyboard-controller geometry remains an alternative. Also, no three-report threshold was found in the inspected footer path; that precondition remains unexplained.

What is needed before choosing a fix

Native iOS layout measurements must establish whether the blank strip belongs to the footer’s padding or sits outside it. Compare keyboard position, footer bounds, and bottom padding before/after focus, with both one and three reports.

No runtime reproduction was performed. Web-only verification cannot establish this native iOS behavior. Making the footer clearance keyboard-aware is a candidate direction, not a verified solution; removing all bottom padding could conflict with existing safe-area compensation.


Next Steps: Confirm ownership of the blank strip with native layout measurements before implementation.


view run

MelvinBot avatar Nov 13 '26 20:11 MelvinBot

Proposal

Please re-state the problem that we are trying to solve in this issue.

On iOS, in Spend > Drafts, focusing the inline search input leaves a blank strip between the Total spend footer and the keyboard.

What is the root cause of that problem?

The footer under the Spend list always reserves room for the native tab bar, even when the keyboard is up:

https://github.com/Expensify/App/blob/main/src/pages/Search/SearchPageNarrow/index.tsx#L113 https://github.com/Expensify/App/blob/main/src/pages/Search/SearchPageNarrow/index.tsx#L457-L467

<SearchSelectionFooter
    searchResults={searchResults}
    style={styles.tabRootFooter(tabBarCoveredHeight)}
/>

tabRootFooter turns that into an unconditional paddingBottom (styles/index.ts), and on iOS useTabBarCoveredHeight returns the UITabBar + home-indicator height whenever the layout is narrow, with no keyboard check (useTabBarCoveredHeight/index.ios.ts).

When the search input is focused, the ScreenWrapper's KeyboardAvoidingView lifts the screen content above the keyboard. The tab bar is now hidden behind the keyboard, but the footer still keeps its tab-bar padding, so that padding shows up as an empty appBG strip right above the keyboard. The footer only renders when there are results (the "Total spend" row), which is why the precondition needs reports with expenses.

What changes do you think we should make in order to solve the problem?

Only reserve the tab-bar clearance while the keyboard is hidden. In SearchPageNarrow:

const {isKeyboardShown} = useKeyboardState();
...
style={styles.tabRootFooter(isKeyboardShown ? 0 : tabBarCoveredHeight)}

useKeyboardState is already used across the Search views. This keeps the footer unchanged when the keyboard is closed, and makes it sit flush on the keyboard when it is open. I'll check the transition on iOS (keyboard open/close, offline indicator shown) and confirm Android/web are unaffected (Android's hook already returns 0, and web has no native keyboard avoidance issue here).

What specific scenarios should we cover in automated tests?

A unit test for SearchPageNarrow (or the footer style) that mocks useKeyboardState and asserts the footer's paddingBottom is tabBarCoveredHeight when isKeyboardShown is false and 0 when it is true.

What alternative solutions did you explore? (Optional)

Make useTabBarCoveredHeight (iOS) return 0 while the keyboard is shown. That would fix every consumer at once (offline indicator, tab-root lists), but it changes more screens than this bug needs, so I'd prefer the scoped change above unless reviewers want it centralized.

fitzyracing1 avatar Nov 13 '26 21:11 fitzyracing1

Proposal

Please re-state the problem that we are trying to solve in this issue.

On iOS, when you focus the search input on Spend, there's an empty strip between the "Total spend" footer and the keyboard.

What is the root cause of that problem?

The selection footer on the narrow Search page always gets bottom padding for the native tab bar:

https://github.com/Expensify/App/blob/bdecb6e7281/src/pages/Search/SearchPageNarrow/index.tsx#L461-L464

<SearchSelectionFooter
    searchResults={searchResults}
    style={styles.tabRootFooter(tabBarCoveredHeight)}
/>

tabRootFooter is just paddingBottom: tabBarCoveredHeight, and on iOS useTabBarCoveredHeight returns getFloatingButtonsBottom(bottomInset), i.e. iosNativeTabBarFloatingButtonsBottom + bottom safe area. That's correct while the translucent UITabBar is on screen, because the footer has to sit above it.

But when the search input gets focus the keyboard covers the tab bar, and the ScreenWrapper's keyboard avoiding view already moves the content up by the keyboard height. Nothing resets the footer padding, so the tab bar clearance is still added on top of the keyboard, and that's the blank space in the video.

What changes do you think we should make in order to solve the problem?

While the keyboard is up, the footer should only keep the bottom safe area inset (that's exactly the part the keyboard avoiding view leaves under the keyboard), not the whole tab bar clearance:

const {isKeyboardActive} = useKeyboardState();
const {paddingBottom: safeAreaPaddingBottom} = useSafeAreaPaddings(true);
...
<SearchSelectionFooter
    searchResults={searchResults}
    style={styles.tabRootFooter(isKeyboardActive ? safeAreaPaddingBottom : tabBarCoveredHeight)}
/>

useSafeAreaPaddings(true) is the same value KeyboardAvoidingView uses for its offset, so the two always match.

I'd use isKeyboardActive (keyboardWillShow/WillHide) and not isKeyboardShown (DidShow/DidHide), so the padding changes together with the keyboard animation instead of after it. We already do the same for this kind of gap in EmojiPicker (addBottomSafeAreaPadding: !isKeyboardActive).

footerHeight is measured from this view via onLayout, so the offline indicator offset follows automatically. On wide layout tabBarCoveredHeight is 0, so nothing changes there.

I tested this on iPhone 17 simulator: before, the footer sat ~59pt above the keyboard; with the change the "Total spend" row sits right on top of the keyboard, nothing clipped, and after blur it goes back above the tab bar. On focus the footer moves up with the keyboard without a jump.

What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

UI test for SearchPageNarrow with mocked useKeyboardState:

  • keyboard hidden -> footer paddingBottom equals tabBarCoveredHeight
  • keyboard active -> footer paddingBottom equals the bottom safe area padding

Manual: iOS, saved/suggested search with reports so the Total spend footer shows, focus the search input -> footer sits right on top of the keyboard, not cut off; blur -> footer goes back above the tab bar.

What alternative solutions did you explore? (Optional)

  1. Setting the padding to 0 while the keyboard is open. It removes the gap, but I tried it and the "Total spend" row ends up half under the keyboard, because the keyboard avoiding view intentionally leaves the safe area strip under it.
  2. Hiding the footer while typing. No gap, but the total disappears while searching, which isn't what the expected result asks for.

SrkaLo92 avatar Nov 13 '26 22:11 SrkaLo92

Proposal

What is the root cause of that problem?

In src/pages/Search/SearchPageNarrow/index.tsx:461-464:

<SearchSelectionFooter
    searchResults={searchResults}
    style={styles.tabRootFooter(tabBarCoveredHeight)}
/>

In src/styles/index.ts:7376-7380, styles.tabRootFooter applies:

tabRootFooter: (tabBarCoveredHeight: number) =>
    ({
        paddingBottom: tabBarCoveredHeight,
        backgroundColor: theme.appBG,
    }) satisfies ViewStyle,

On iOS, useTabBarCoveredHeight() computes getFloatingButtonsBottom(bottomInset), representing iosNativeTabBarFloatingButtonsBottom + bottomInset (the total clearance required so content rests above the translucent native UITabBar).

When the search input gains focus on iOS:

  1. ScreenWrapper's KeyboardAvoidingView shifts the entire container upwards by the keyboard height.
  2. The keyboard overlays and conceals the native tab bar.
  3. However, SearchSelectionFooter continues to apply the full tabBarCoveredHeight as bottom padding. Because the tab bar is already covered by the keyboard and keyboard avoidance has translated the view, this extra bottom clearance manifests as a blank gap directly above the keyboard.

What changes do you think we should make in order to solve the problem?

  1. Conditionally adjust bottom padding when the keyboard is active: In src/pages/Search/SearchPageNarrow/index.tsx, consume useKeyboardState and useSafeAreaPaddings:

    import useKeyboardState from '@hooks/useKeyboardState';
    import useSafeAreaPaddings from '@hooks/useSafeAreaPaddings';
    

    Retrieve isKeyboardActive and the safe area padding:

    const {isKeyboardActive} = useKeyboardState();
    const {paddingBottom: safeAreaPaddingBottom} = useSafeAreaPaddings(true);
    

    Update the SearchSelectionFooter style prop to use safeAreaPaddingBottom while the keyboard is active, and tabBarCoveredHeight when inactive:

    <SearchSelectionFooter
        searchResults={searchResults}
        style={styles.tabRootFooter(isKeyboardActive ? safeAreaPaddingBottom : tabBarCoveredHeight)}
    />
    
    • Using isKeyboardActive (which listens to iOS keyboardWillShow and keyboardWillHide lifecycle events) ensures the padding transitions in sync with the native keyboard slide animation rather than snapping after completion.
    • useSafeAreaPaddings(true) matches the exact bottom inset preserved under the keyboard by KeyboardAvoidingView, ensuring the "Total spend" footer sits flush against the top of the keyboard without truncation or unwanted spacing.
    • On wide desktop/web layouts, tabBarCoveredHeight evaluates to 0, so wide view behavior remains completely untouched.
  2. Automated Testing: Add unit test coverage in tests/ui/SearchPageNarrowTest.tsx:

    • Verify that when isKeyboardActive is false, SearchSelectionFooter receives tabBarCoveredHeight.
    • Verify that when isKeyboardActive is true, SearchSelectionFooter receives safeAreaPaddingBottom.

What alternative solutions did you explore? (Optional)

  • Setting the bottom padding to 0 while the keyboard is active: this causes the bottom text of the footer to be slightly occluded because KeyboardAvoidingView reserves the safe area inset at the bottom. Preserving safeAreaPaddingBottom aligns perfectly flush with the keyboard boundary.
  • Hiding the selection footer entirely while typing: this removes the total spend calculation from view, which violates the expected requirement of keeping the total spend visible immediately above the keyboard.

Contributor details

Your Expensify account email: [email protected] Upwork Profile Link: https://www.upwork.com/freelancers/~0131dae36abcf59374

kevinjosh10 avatar Nov 14 '26 00:11 kevinjosh10

Proposal

Please re-state the problem that we are trying to solve in this issue.

On narrow iOS layouts in Spend (SearchPageNarrow), when expenses or reports exist so SearchSelectionFooter (Total spend bar) is rendered and the user focuses the search input, a blank appBG-colored gap (~59pt) appears between the bottom of the Total spend footer and the top of the software keyboard.

What is the root cause of that problem?

  1. On narrow iOS layouts, SearchPageNarrow (src/pages/Search/SearchPageNarrow/index.tsx) spreads useTabRootScreenWrapperProps() (src/components/Navigation/TabBarBottomContent/useTabRootScreenWrapperProps/index.ios.tsx) onto <ScreenWrapper>, setting enableEdgeToEdgeBottomSafeAreaPadding: false, and passes style={styles.tabRootFooter(tabBarCoveredHeight)} ({paddingBottom: tabBarCoveredHeight}) to <SearchSelectionFooter>.
  2. Because enableEdgeToEdgeBottomSafeAreaPadding is explicitly false (!== undefined), ScreenWrapper (src/components/ScreenWrapper/index.tsx) and ScreenWrapperContainer (src/components/ScreenWrapper/ScreenWrapperContainer.tsx) set isUsingEdgeToEdgeMode = true and shouldKeyboardOffsetBottomSafeAreaPadding = true. Inside KeyboardAvoidingView (src/components/KeyboardAvoidingView/index.tsx), keyboardVerticalOffset is -paddingBottom (from useSafeAreaPaddings(true), matching the iOS bottom safe-area inset bottomInset, e.g. 34pt on Face ID devices). When the keyboard opens, KeyboardAvoidingView lifts ScreenWrapper's children to keyboardHeight - bottomInset, intentionally leaving bottomInset tucked behind the top edge of the keyboard.
  3. However, useTabBarCoveredHeight on iOS (src/components/Navigation/TabBarBottomContent/useTabBarCoveredHeight/index.ios.ts) unconditionally returns getFloatingButtonsBottom(bottomInset) (variables.iosNativeTabBarFloatingButtonsBottom + bottomInset, i.e. 59pt + 34pt = 93pt) whenever shouldUseNarrowLayout is true—even when the software keyboard is active and completely covering the native UITabBar.
  4. Subtracting KeyboardAvoidingView's -bottomInset overlap (-34pt) from tabBarCoveredHeight (59pt + 34pt) leaves an exposed variables.iosNativeTabBarFloatingButtonsBottom (59pt) blank strip inside SearchSelectionFooter above the keyboard (and similarly under styles.tabBarOfflineIndicator(tabBarCoveredHeight) in useTabRootScreenWrapperProps/index.ios.tsx when offline with no footer).

What changes do you think we should make in order to solve the problem?

  1. In src/components/Navigation/TabBarBottomContent/useTabBarCoveredHeight/index.ios.ts, read isKeyboardActive from useKeyboardState() (@hooks/useKeyboardState, which updates on keyboardWillShow / keyboardWillHide so layout updates in lockstep with the keyboard animation rather than snapping after keyboardDidShow):
    • When !shouldUseNarrowLayout, continue returning 0.
    • When isKeyboardActive is true, return bottomInset instead of getFloatingButtonsBottom(bottomInset), since the keyboard covers the translucent UITabBar while ScreenWrapper's edge-to-edge KeyboardAvoidingView (keyboardVerticalOffset = -paddingBottom) still offsets the container into the keyboard by bottomInset:
    import useKeyboardState from '@hooks/useKeyboardState';
    import useResponsiveLayout from '@hooks/useResponsiveLayout';
    import useSafeAreaInsets from '@hooks/useSafeAreaInsets';
    
    import {getFloatingButtonsBottom} from '@libs/Navigation/AppNavigator/Navigators/NativeTabNavigator/useNativeTabBarOptions';
    
    function useTabBarCoveredHeight(): number {
        const {shouldUseNarrowLayout} = useResponsiveLayout();
        const {bottom: bottomInset} = useSafeAreaInsets();
        const {isKeyboardActive} = useKeyboardState();
    
        if (!shouldUseNarrowLayout) {
            return 0;
        }
    
        return isKeyboardActive ? bottomInset : getFloatingButtonsBottom(bottomInset);
    }
    
  2. In src/components/Navigation/TabBarBottomContent/useTabRootScrollProps/index.ios.tsx, derive addOfflineIndicatorBottomSafeAreaPadding from shouldUseNarrowLayout && !hasOfflineIndicatorPadding (via useResponsiveLayout()) and additionalPaddingBottom from shouldUseNarrowLayout && fillsVisibleArea ? Math.max(0, coveredHeightPadding) : 0, so Home-button iPhones (bottomInset === 0, where tabBarCoveredHeight becomes 0 while isKeyboardActive is true) keep consistent offline-indicator scroll clearance with Face ID iPhones.

What alternative solutions did you explore? (Optional)

  • Overriding styles.tabRootFooter to isKeyboardActive ? safeAreaPaddingBottom : tabBarCoveredHeight directly inside SearchPageNarrow/index.tsx: Rejected because SearchPageNarrow is shared across iOS, Android, and mWeb:
    1. On Android, useTabBarCoveredHeight/index.android.ts returns 0 and ScreenWrapper does not run in edge-to-edge mode (keyboardVerticalOffset is 0), so substituting safeAreaPaddingBottom (> 0) when the keyboard opens would introduce a new blank gap above the keyboard on Android.
    2. On mWeb, KeyboardAvoidingView is a passthrough <View> and TabBarBottomContent remains mounted at the bottom of the viewport (hideBottomContentOnKeyboardShown is false), so replacing tabBarCoveredHeight with safeAreaPaddingBottom collapses the footer behind the floating web tab bar.
    3. Scoping the fix in SearchPageNarrow also leaves styles.tabBarOfflineIndicator(tabBarCoveredHeight) in useTabRootScreenWrapperProps/index.ios.tsx floating 59pt above the keyboard when offline with an empty result set (footerHeight === 0) or on other iOS tab root screens.
  • Setting paddingBottom to 0 when isKeyboardShown is true: Rejected because ScreenWrapper applies keyboardVerticalOffset = -paddingBottom in edge-to-edge mode, so 0 bottom padding clips the bottom bottomInset (34pt) of SearchSelectionFooter behind the iOS keyboard on Face ID devices, and isKeyboardShown fires only on keyboardDidShow/keyboardDidHide, causing a post-animation layout jump.

cocvn157 avatar Nov 14 '26 01:11 cocvn157

Proposal

Please re-state the problem that we are trying to solve in this issue.

On iOS (narrow layout), when navigating to Spend > Drafts (where SearchSelectionFooter displays the Total spend bar) and tapping the inline search input at the top of the page, a blank gap appears between the Total spend footer and the top of the iOS keyboard.

What is the root cause of that problem?

  1. In src/pages/Search/SearchPageNarrow/index.tsx:467-470, SearchSelectionFooter receives style={styles.tabRootFooter(tabBarCoveredHeight)}, which applies {paddingBottom: tabBarCoveredHeight, backgroundColor: theme.appBG} (src/styles/index.ts:7376-7380) so the footer clears the translucent iOS UITabBar and home indicator when resting at the bottom of the screen.
  2. In src/components/Navigation/TabBarBottomContent/useTabBarCoveredHeight/index.ios.ts:8-13:
    function useTabBarCoveredHeight(): number {
        const {shouldUseNarrowLayout} = useResponsiveLayout();
        const {bottom: bottomInset} = useSafeAreaInsets();
    
        return shouldUseNarrowLayout ? getFloatingButtonsBottom(bottomInset) : 0;
    }
    
    useTabBarCoveredHeight() unconditionally returns getFloatingButtonsBottom(bottomInset) regardless of whether the software keyboard is open.
  3. Because ScreenWrapper wraps SearchPageNarrow in KeyboardAvoidingView (behavior="padding" on iOS), focusing the inline search input lifts the bottom of SearchPageNarrow (and SearchSelectionFooter) to the top edge of the software keyboard, where the translucent UITabBar and bottom safe area are already covered by the keyboard. Keeping paddingBottom: tabBarCoveredHeight (~83pt) while the keyboard is open creates the visible blank appBG strip directly above the keyboard (and similarly offsets offlineIndicatorStyle: styles.tabBarOfflineIndicator(tabBarCoveredHeight) in useTabRootScreenWrapperProps/index.ios.tsx).

What changes do you think we should make in order to solve the problem?

  1. Return 0 from useTabBarCoveredHeight on iOS when the keyboard is shown (src/components/Navigation/TabBarBottomContent/useTabBarCoveredHeight/index.ios.ts):
    • Subscribe to useKeyboardState() and return 0 when isKeyboardShown is true, since KeyboardAvoidingView lifts the screen content above the keyboard (and therefore above the UITabBar):
      import useKeyboardState from '@hooks/useKeyboardState';
      import useResponsiveLayout from '@hooks/useResponsiveLayout';
      import useSafeAreaInsets from '@hooks/useSafeAreaInsets';
      
      import {getFloatingButtonsBottom} from '@libs/Navigation/AppNavigator/Navigators/NativeTabNavigator/useNativeTabBarOptions';
      
      /** The translucent UITabBar and the home indicator inset under it cover the bottom of a narrow tab root screen. */
      function useTabBarCoveredHeight(): number {
          const {shouldUseNarrowLayout} = useResponsiveLayout();
          const {bottom: bottomInset} = useSafeAreaInsets();
          const {isKeyboardShown} = useKeyboardState();
      
          if (!shouldUseNarrowLayout || isKeyboardShown) {
              return 0;
          }
      
          return getFloatingButtonsBottom(bottomInset);
      }
      
      export default useTabBarCoveredHeight;
      
  2. Add unit tests:
    • Add a unit test in tests/unit/useTabBarCoveredHeightTest.ts verifying that on iOS narrow layout, useTabBarCoveredHeight() returns getFloatingButtonsBottom(bottomInset) when the keyboard is hidden and 0 when isKeyboardShown is true.

What alternative solutions did you explore? (Optional)

  • Checking useKeyboardState() only in SearchPageNarrow/index.tsx: Rejected because useTabBarCoveredHeight also drives styles.tabBarOfflineIndicator(tabBarCoveredHeight) in useTabRootScreenWrapperProps/index.ios.tsx; zeroing useTabBarCoveredHeight when the keyboard covers the tab bar fixes both the footer and the offline indicator consistently.

U-ITACHII avatar Nov 15 '26 10:11 U-ITACHII

Still try to reproduce this issue

daledah avatar Nov 18 '26 03:11 daledah

@daledah Eep! 4 days overdue now. Issues have feelings too...

Not overdue, i can reproduce this bug Trying to find the RCA now

daledah avatar Nov 25 '26 04:11 daledah

I can't see Melvin's proposal, so I'm adding the Help Wanted label to get more eyes on this.

daledah avatar Nov 25 '26 04:11 daledah

Proposal

What is the root cause of that problem?

With the keyboard open, two places still reserve the tab bar height (tabBarCoveredHeight), which leaves a blank band above the keyboard. The band sits between the footer or the offline indicator and the keyboard.

On narrow iOS the tab bar floats over the bottom of the screen, so tab root screens reserve its height: 59 pt of bar plus the 34 pt home indicator inset. When the keyboard opens it covers the tab bar, but the reserved height stays. The keyboard avoiding view of ScreenWrapper lifts the page by the keyboard height minus the bottom safe area inset, so the last 34 pt are left under the keyboard and the real blank gap is 59 pt, not 93.

The Total spend footer keeps the height, which is the case of the ticket. https://github.com/Expensify/App/blob/0eabbe336c7fb12f1e54cc2c640dfe5d560fe23d/src/pages/Search/SearchPageNarrow/index.tsx#L465

The offline indicator of tab root screens keeps it too, on screens with no footer, where the indicator floats about 60 pt above the keyboard and its opaque background covers the title of the empty screen (image 1). https://github.com/Expensify/App/blob/0eabbe336c7fb12f1e54cc2c640dfe5d560fe23d/src/components/Navigation/TabBarBottomContent/useTabRootScreenWrapperProps/index.ios.tsx#L25

What changes do you think we should make in order to solve the problem?

In both places, use the bottom safe area inset instead of tabBarCoveredHeight while the keyboard is open. No blank band is left. isKeyboardActive from useKeyboardState follows keyboardWillShow and keyboardWillHide, so it changes with the animation.

// SearchPageNarrow/index.tsx
style={styles.tabRootFooter(isKeyboardActive ? Math.min(bottomInset, tabBarCoveredHeight) : tabBarCoveredHeight)}
// useTabRootScreenWrapperProps/index.ios.tsx
offlineIndicatorStyle: styles.tabBarOfflineIndicator(isKeyboardActive ? bottomInset : tabBarCoveredHeight),

SearchPageNarrow is shared with Android and web, where tabBarCoveredHeight is 0, so the Math.min keeps them at 0. With the keyboard closed nothing changes.

Tested on an iPhone 17 simulator (iOS 27), local build of current main, staging backend, with and without the change. Before, offline on Ready to pay (no footer) with the search field focused, the indicator floats above a blank band over the keyboard (image 1). After, the indicator sits right on the keyboard (image 2); offline on Drafts, the Total spend footer sits on the keyboard with the indicator above it and nothing is cut (image 3). Not tested: Android and web.

Image 1: before, offline on Ready to pay. Image 2: after, the indicator on the keyboard. Image 3: after, offline on Drafts. Image 4: a footer padding of 0 with the keyboard open, the Total spend row half under the keyboard.

What alternative solutions did you explore? (Optional)

  • A footer padding of 0 with the keyboard open: the Total spend row ends up half under the keyboard, because the 34 pt left under it are not compensated (image 4).
  • Change useTabBarCoveredHeight itself: it also feeds useTabRootScrollProps for the list insets, so I kept the change at the two places that apply the padding; I did not try the hook change.

106898-1.png

106898-2.png

106898-3.png

106898-4.png

Idento avatar Nov 25 '26 04:11 Idento

🚨 Edited by proposal-police: This proposal was edited at 2026-11-25 04:49:15 UTC.

Proposal

Please re-state the problem that we are trying to solve in this issue.

On iOS, in Spend, focusing the search input opens the keyboard but a blank strip stays between the "Total spend" footer and the keyboard.

What is the root cause of that problem?

The footer and the KeyboardAvoidingView disagree on how much of the screen bottom goes under the keyboard.

Since the native UITabBar (#101339) Spend content runs down under the bar, so the footer reserves the whole tab bar band:

https://github.com/Expensify/App/blob/620ea21e85432d73f80b1acce11854d994622240/src/pages/Search/SearchPageNarrow/index.tsx#L463-L466

and on iOS that band is iosNativeTabBarFloatingButtonsBottom (50) + bottomInset, so 84pt on a Face ID iPhone:

https://github.com/Expensify/App/blob/620ea21e85432d73f80b1acce11854d994622240/src/components/Navigation/TabBarBottomContent/useTabBarCoveredHeight/index.ios.ts#L11-L20

The KAV on the other side only knows about the safe area. The iOS tab root props pass enableEdgeToEdgeBottomSafeAreaPadding: false, which turns on edge to edge mode, so shouldKeyboardOffsetBottomSafeAreaPadding defaults to true:

https://github.com/Expensify/App/blob/620ea21e85432d73f80b1acce11854d994622240/src/components/Navigation/TabBarBottomContent/useTabRootScreenWrapperProps/index.ios.tsx#L23-L26 https://github.com/Expensify/App/blob/620ea21e85432d73f80b1acce11854d994622240/src/components/ScreenWrapper/index.tsx#L136-L143

and the KAV adds -paddingBottom to the keyboardVerticalOffset it gets from ScreenWrapper:

https://github.com/Expensify/App/blob/620ea21e85432d73f80b1acce11854d994622240/src/components/KeyboardAvoidingView/index.tsx#L9-L12

That paddingBottom is not the full inset, on iOS it's bottomInset * iosSafeAreaInsetsPercentage (0.7), so 23.8pt:

https://github.com/Expensify/App/blob/620ea21e85432d73f80b1acce11854d994622240/src/styles/utils/index.ts#L437-L459

keyboard-controller lifts the content by keyboardHeight + keyboardVerticalOffset (KeyboardAvoidingView/index.tsx#L102-L109):

const keyboardY = screenHeight - keyboard.heightWhenOpened.value - keyboardVerticalOffset;
return Math.max(frame.value.y + frame.value.height - keyboardY, 0);

So only 23.8pt of the screen bottom goes under the keyboard, but the footer keeps 84pt of padding there. The other 60.2pt (50 + 0.3 * 34) is the blank strip. I measured it on an iPhone 17 Pro simulator: the "Total spend" row sits exactly 180px (60pt at 3x) above where it should be.

The reports precondition only matters because SearchSelectionFooter renders the totals row only when there are results. Android isn't affected because its hook returns 0, and on mWeb the floating tab bar stays above the keyboard.

What changes do you think we should make in order to solve the problem?

Leave the footer padding as it is and make the KAV lift the Spend screen by the same band the footer reserves. ScreenWrapper already forwards keyboardVerticalOffset to the KAV:

https://github.com/Expensify/App/blob/620ea21e85432d73f80b1acce11854d994622240/src/components/ScreenWrapper/ScreenWrapperContainer.tsx#L202-L210

  1. Add a small platform split hook next to useTabBarCoveredHeight, useTabRootKeyboardVerticalOffset. On iOS it returns the part of the band the KAV doesn't offset yet:
// useTabRootKeyboardVerticalOffset/index.ios.ts
function useTabRootKeyboardVerticalOffset(): number {
    const tabBarCoveredHeight = useTabBarCoveredHeight();
    const {paddingBottom: safeAreaPaddingBottom} = useSafeAreaPaddings(true);

    return tabBarCoveredHeight > 0 ? safeAreaPaddingBottom - tabBarCoveredHeight : 0;
}

index.ts returns 0, so Android and web don't change.

  1. Pass it to the Spend ScreenWrapper while the footer is shown (footerHeight is already measured there):

https://github.com/Expensify/App/blob/620ea21e85432d73f80b1acce11854d994622240/src/pages/Search/SearchPageNarrow/index.tsx#L352-L358

const tabRootKeyboardVerticalOffset = useTabRootKeyboardVerticalOffset();
...
keyboardVerticalOffset={footerHeight > 0 ? tabRootKeyboardVerticalOffset : undefined}

The total offset becomes -tabBarCoveredHeight, exactly what the footer reserves, so the "Total spend" row lands on the keyboard. It's built from the live values, so it also holds for a home button iPhone (-50) and the vertical tab bar case (-10.2), and it's 0 on wide layouts.

Why this way and not switching the padding on keyboard state:

  • the footer layout never changes, the KAV does the whole move on the UI thread, so the row moves together with the keyboard. If the padding is switched on isKeyboardActive it drops by 60pt in one commit at keyboardWillShow while the KAV is still at the start of its animation, and on the simulator the "Total spend" row goes under the rising keyboard for 2 frames before it jumps back up (captured frame by frame, 3 runs)
  • no keyboard state subscription, so the Spend page and the other tab roots don't re-render on every keyboard open/close
  • only this screen is touched, other tab roots keep their list and offline indicator insets as they are

Test branch: https://github.com/Expensify/App/compare/main...David-2002065:App:fix/106898-spend-footer-keyboard-gap

What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

Unit test for the iOS hook with a narrow layout and a 34pt inset: the hook value plus the KAV's own -paddingBottom equals -tabBarCoveredHeight, so nothing of the footer padding is left above the keyboard. Wide layout and the default file return 0. This is in the branch.

What alternative solutions did you explore? (Optional)

  1. Switch the footer padding while the keyboard is open (isKeyboardActive ? safeAreaPaddingBottom : tabBarCoveredHeight), in SearchPageNarrow or inside the iOS useTabBarCoveredHeight. It gives the right resting position, but the padding change is a JS commit that lands before the animated KAV lift catches up, so the footer flickers under the keyboard when it opens, and in the hook version every tab root re-renders on keyboard events.
  2. Padding 0 while the keyboard is open. The KAV still leaves 23.8pt under the keyboard, so the bottom of the "Total spend" row gets cut.

David-2002065 avatar Nov 25 '26 04:11 David-2002065

Proposal

Please re-state the problem that we are trying to solve in this issue.

On iOS, on Spend (for example Drafts), when you focus the search input the keyboard opens, but a blank strip shows between the footer with the total spend and the top of the keyboard.

What is the root cause of that problem?

The footer's bottom padding is sized for the native tab bar, and that padding stays the same when the keyboard is open.

  1. On iOS, tab root screens run edge to edge under the translucent UITabBar. This means the Spend footer has to pad itself past the bar. SearchPageNarrow gives it styles.tabRootFooter(tabBarCoveredHeight), which is paddingBottom: tabBarCoveredHeight:
    • https://github.com/Expensify/App/blob/88075c1f532c1d87096d82e546473fe2b22400ea/src/pages/Search/SearchPageNarrow/index.tsx#L113
    • https://github.com/Expensify/App/blob/88075c1f532c1d87096d82e546473fe2b22400ea/src/pages/Search/SearchPageNarrow/index.tsx#L459-L465
    • https://github.com/Expensify/App/blob/88075c1f532c1d87096d82e546473fe2b22400ea/src/styles/index.ts#L7402-L7406
  2. On iOS that height is 50 (bar) + bottom inset, and nothing about the keyboard is taken into account:
    • https://github.com/Expensify/App/blob/88075c1f532c1d87096d82e546473fe2b22400ea/src/components/Navigation/TabBarBottomContent/useTabBarCoveredHeight/index.ios.ts#L7-L12
    • https://github.com/Expensify/App/blob/88075c1f532c1d87096d82e546473fe2b22400ea/src/libs/Navigation/AppNavigator/Navigators/NativeTabNavigator/useNativeTabBarOptions/index.ios.ts#L19
  3. When the input is focused, the ScreenWrapper's KeyboardAvoidingView shrinks the screen so its bottom edge sits at the top of the keyboard. The keyboard now covers the tab bar, so the bar covers nothing inside the screen anymore. iOS tab roots pass enableEdgeToEdgeBottomSafeAreaPadding: false, which turns on shouldKeyboardOffsetBottomSafeAreaPadding. Because of that, the KAV leaves exactly the bottom inset under the keyboard (keyboardVerticalOffset = -paddingBottom):
    • https://github.com/Expensify/App/blob/88075c1f532c1d87096d82e546473fe2b22400ea/src/components/Navigation/TabBarBottomContent/useTabRootScreenWrapperProps/index.ios.tsx#L21-L26
    • https://github.com/Expensify/App/blob/88075c1f532c1d87096d82e546473fe2b22400ea/src/components/ScreenWrapper/index.tsx#L135-L141
    • https://github.com/Expensify/App/blob/88075c1f532c1d87096d82e546473fe2b22400ea/src/components/ScreenWrapper/ScreenWrapperContainer.tsx#L202-L209
    • https://github.com/Expensify/App/blob/88075c1f532c1d87096d82e546473fe2b22400ea/src/components/KeyboardAvoidingView/index.tsx#L9-L12
  4. The result: of the footer's 50 + inset padding, the inset part ends up under the keyboard, as intended. The 50pt that was reserved for a tab bar the keyboard now hides shows up as the blank space above the keyboard.

This came in with ffa27646ad1 "Spend footer sits above the tab bar" (PR #101339, the liquid glass tab bar). It sized the footer for the tab bar when there is no keyboard, and never handled the keyboard-open state.

Affected paths and platforms:

  • iOS native, narrow layout: affected (this issue). The input's onFocus only resets topBarOffset (https://github.com/Expensify/App/blob/88075c1f532c1d87096d82e546473fe2b22400ea/src/pages/Search/SearchPageNarrow/index.tsx#L303-L307). The footer stays mounted outside the list, so it sits right above the keyboard.
  • Android: not affected. Its useTabBarCoveredHeight returns 0 because Material's bar reserves its own row (https://github.com/Expensify/App/blob/88075c1f532c1d87096d82e546473fe2b22400ea/src/components/Navigation/TabBarBottomContent/useTabBarCoveredHeight/index.android.ts). This explains why only iOS is checked in the issue.
  • Wide layout: not affected. The hook returns 0 when !shouldUseNarrowLayout.
  • Every Spend type with a totals footer: affected the same way, not just Drafts. The footer shows whenever shouldAllowFooterTotals && metadata.count (https://github.com/Expensify/App/blob/88075c1f532c1d87096d82e546473fe2b22400ea/src/components/Search/SearchSelectionFooter.tsx#L473). Selection mode is affected too, since the footer also shows when there is a selection.

What changes do you think we should make in order to solve the problem?

Fix it where the value is computed: the iOS useTabBarCoveredHeight. While the keyboard is shown, the UITabBar is behind the keyboard and covers nothing. Only the bottom inset is still covered, because the KAV deliberately leaves it under the keyboard:

const {isKeyboardShown} = useKeyboardState();
if (!shouldUseNarrowLayout) return 0;
// The keyboard hides the bar; only the inset the KeyboardAvoidingView leaves under the keyboard stays covered.
return isKeyboardShown ? bottomInset : getFloatingButtonsBottom(bottomInset);

useKeyboardState is already mounted app-wide through KeyboardStateProvider. With this change the footer's content sits right on top of the keyboard and moves back above the bar when the keyboard closes. This is one mechanism in an iOS-only file.

Regression safety: Android and the web hook are untouched, wide layout still gets 0, and when the keyboard is closed the value is the same as today. The other iOS consumers (tabBarOfflineIndicator, useTabRootScrollProps) get the same corrected height, and isCoveredByTabBar stays true because the inset is still > 0, so their branches do not flip.

Why the obvious one-liner tabRootFooter(isKeyboardShown ? 0 : tabBarCoveredHeight) is wrong: it drops the inset too. Because of step 3, the KAV already extends the screen paddingBottom (34pt on an iPhone 13) under the keyboard. With 0 padding, the footer's last 34pt (the total row) is hidden behind the keyboard. The issue would go from a 50pt gap to a clipped footer. The correct value while the keyboard is open is the inset, not 0.

What alternative solutions did you explore? (Optional)

  • Same expression, but only at the SearchPageNarrow call site (isKeyboardShown ? safeAreaPaddingBottom : tabBarCoveredHeight). This fixes the repro. But it puts tab bar geometry into the page, and any other iOS tab-root footer would need the same patch. Keeping it in the hook leaves one place that knows what the bar covers.
  • Disable the KAV / shouldEnableMaxHeight on Spend. This removes the gap only because the footer and list would then stay under the keyboard, so search results would be covered. Rejected.
  • Hide the footer while the input is focused. This changes designed behavior (the issue expects the total right above the keyboard) and misses the selection-mode footer. Rejected.

ahmdshrif avatar Nov 25 '26 04:11 ahmdshrif

Proposal

Please re-state the problem that we are trying to solve in this issue.

On iOS, on Spend > Drafts, focusing the search input opens the keyboard, but a blank band stays between the total spend footer and the top of the keyboard.

What is the root cause of that problem?

The Spend footer on narrow layouts is padded at the bottom by the height the native tab bar covers, so it sits above the translucent UITabBar:

https://github.com/Expensify/App/blob/3c23786f4abf5a9d91decb60eb5fa521637d3d35/src/pages/Search/SearchPageNarrow/index.tsx#L457-L465

On iOS that height is the UITabBar plus the home indicator inset:

https://github.com/Expensify/App/blob/3c23786f4abf5a9d91decb60eb5fa521637d3d35/src/components/Navigation/TabBarBottomContent/useTabBarCoveredHeight/index.ios.ts#L6-L12

https://github.com/Expensify/App/blob/3c23786f4abf5a9d91decb60eb5fa521637d3d35/src/styles/index.ts#L7376-L7380

When the search input is focused, the page's ScreenWrapper (which keeps the default padding keyboard avoiding behavior) lifts its content above the keyboard:

https://github.com/Expensify/App/blob/3c23786f4abf5a9d91decb60eb5fa521637d3d35/src/components/ScreenWrapper/ScreenWrapperContainer.tsx#L202-L210

At that point the tab bar is hidden behind the keyboard, so nothing sits under the footer anymore. But the footer still applies paddingBottom: tabBarCoveredHeight unconditionally, and that padding is drawn as an empty appBG band between the total spend row and the keyboard. That is the blank space in the video. It only shows on iOS because the Android hook returns 0 (Material's bar is reserved in the layout instead), and on web the floating JS tab bar is laid out differently.

What changes do you think we should make in order to solve the problem?

In SearchPageNarrow, read the keyboard state with useKeyboardState and pass 0 to styles.tabRootFooter(...) while the keyboard is shown, keeping tabBarCoveredHeight otherwise. The footer then sits directly on the keyboard when the search input is focused, and goes back above the tab bar once the keyboard closes.

The offline indicator offset above the footer already follows the footer's measured height (footerHeight from onLayout), so it adjusts automatically and needs no extra change.

Compare branch: https://github.com/Expensify/App/compare/main...wildan-m:App:wildan/106898-footer-keyboard-padding?expand=1

What alternative solutions did you explore? (Optional)

Return 0 from the iOS useTabBarCoveredHeight hook while the keyboard is shown. That would fix the footer as well, but the same hook also drives the tab root list's bottom inset and the offline indicator position on every tab, so the change would reach screens that don't have this problem. Scoping it to the footer keeps the fix to the one place that renders the gap.

wildan-m avatar Nov 25 '26 04:11 wildan-m

🚨 Edited by proposal-police: This proposal was edited at 2026-11-25 17:07:32 UTC.

Proposal

Update after @NicolasBonet's review (comment): I am withdrawing my solution. Switching the hook's value on isKeyboardActive resizes the footer during the keyboard's animation (the "Total spend" row was under the keyboard for up to 6 frames, measured), and mounted tab roots re-render on keyboard events (HomePage and LHNOptionsList 4 times each per keyboard open and close, measured). The test branch linked here earlier implements the withdrawn solution. The root cause below stands.

What is the root cause of that problem?

Two bottom clearances measured from different numbers: the footer pads past the whole tab bar, while the ScreenWrapper's KeyboardAvoidingView lifts the content past the keyboard minus the scaled bottom safe area padding.

useTabBarCoveredHeight on iOS reads only shouldUseNarrowLayout, the bottom inset and useIsTabBarVertical(), so it keeps returning iosNativeTabBarFloatingButtonsBottom + bottomInset, 50 + the inset, once the keyboard covers the bar:

https://github.com/Expensify/App/blob/e41949db5a6815138b00e3c3a2e5f753eded5f83/src/components/Navigation/TabBarBottomContent/useTabBarCoveredHeight/index.ios.ts#L11-L20

SearchPageNarrow turns that number into the footer's paddingBottom:

https://github.com/Expensify/App/blob/e41949db5a6815138b00e3c3a2e5f753eded5f83/src/pages/Search/SearchPageNarrow/index.tsx#L459-L467

https://github.com/Expensify/App/blob/e41949db5a6815138b00e3c3a2e5f753eded5f83/src/styles/index.ts#L7453-L7459

The wrapper side: useTabRootScreenWrapperProps passes enableEdgeToEdgeBottomSafeAreaPadding: false, and any explicit value puts ScreenWrapper in edge-to-edge mode, defaulting shouldKeyboardOffsetBottomSafeAreaPadding to true:

https://github.com/Expensify/App/blob/e41949db5a6815138b00e3c3a2e5f753eded5f83/src/components/ScreenWrapper/index.tsx#L136-L143

so the view offsets by -useSafeAreaPaddings(true).paddingBottom:

https://github.com/Expensify/App/blob/e41949db5a6815138b00e3c3a2e5f753eded5f83/src/components/KeyboardAvoidingView/index.tsx#L9-L13

which on iOS is bottomInset * iosSafeAreaInsetsPercentage, 0.7 of the inset:

https://github.com/Expensify/App/blob/e41949db5a6815138b00e3c3a2e5f753eded5f83/src/styles/utils/index.ts#L440-L458

In [email protected] that offset feeds the padding — keyboardY = screenHeight - keyboardHeight - keyboardVerticalOffset, padding = frame.y + frame.height - keyboardY:

https://github.com/kirillzyusko/react-native-keyboard-controller/blob/1.22.4/src/components/KeyboardAvoidingView/index.tsx#L102-L109

With the screen frame's bottom at screenHeight, the view is padded by keyboardHeight - 0.7 * bottomInset: 0.7 of the inset is left under the keyboard on purpose. The footer then adds 50 + bottomInset of its own, so the strip standing between it and the keyboard is 50 + 0.3 * bottomInset — 60.2pt on a 34pt home-indicator iPhone, 50pt on a home-button one.

Hence the precondition list — footer mounted (shouldShowFooter, "at least 3 reports"), narrow layout, iOS, since index.android.ts returns 0. The clearance arrived with PR #101339.

At e41949db, with a narrow layout, a 34pt bottom inset and a horizontal bar mocked:

// Given a narrow iPhone layout with the keyboard open over the UITabBar
const {result} = renderHook(() => useTabBarCoveredHeight());
// When the KeyboardAvoidingView pads by keyboardHeight minus the bottom safe area padding, that padding is all of the footer's clearance the keyboard takes
const gap = result.current - 34 * variables.iosSafeAreaInsetsPercentage;
// Then the footer should sit on the keyboard
expect(gap).toBeCloseTo(0); // Expected: 0, Received: 60.2

What changes do you think we should make in order to solve the problem?

Withdrawn, see the note at the top.

trasnake87 avatar Nov 25 '26 04:11 trasnake87

Proposal

What is the root cause of that problem?

In src/pages/Search/SearchPageNarrow/index.tsx:461-464:

<SearchSelectionFooter
    searchResults={searchResults}
    style={styles.tabRootFooter(tabBarCoveredHeight)}
/>

In src/styles/index.ts:7376-7380, styles.tabRootFooter applies:

tabRootFooter: (tabBarCoveredHeight: number) =>
    ({
        paddingBottom: tabBarCoveredHeight,
        backgroundColor: theme.appBG,
    }) satisfies ViewStyle,

On iOS, useTabBarCoveredHeight() computes getFloatingButtonsBottom(bottomInset), representing iosNativeTabBarFloatingButtonsBottom + bottomInset (the total clearance required so content rests above the translucent native UITabBar).

When the search input gains focus on iOS:

  1. ScreenWrapper's KeyboardAvoidingView shifts the entire container upwards by the keyboard height.
  2. The keyboard overlays and conceals the native tab bar.
  3. However, SearchSelectionFooter continues to apply the full tabBarCoveredHeight as bottom padding. Because the tab bar is already covered by the keyboard and keyboard avoidance has translated the view, this extra bottom clearance manifests as a blank gap directly above the keyboard.

What changes do you think we should make in order to solve the problem?

  1. Conditionally adjust bottom padding when the keyboard is active: In src/pages/Search/SearchPageNarrow/index.tsx, consume useKeyboardState and useSafeAreaPaddings:

    import useKeyboardState from '@hooks/useKeyboardState';
    import useSafeAreaPaddings from '@hooks/useSafeAreaPaddings';
    

    Retrieve isKeyboardActive and the safe area padding:

    const {isKeyboardActive} = useKeyboardState();
    const {paddingBottom: safeAreaPaddingBottom} = useSafeAreaPaddings(true);
    

    Update the SearchSelectionFooter style prop to use safeAreaPaddingBottom while the keyboard is active, and tabBarCoveredHeight when inactive:

    <SearchSelectionFooter
        searchResults={searchResults}
        style={styles.tabRootFooter(isKeyboardActive ? safeAreaPaddingBottom : tabBarCoveredHeight)}
    />
    
    • Using isKeyboardActive (which listens to iOS keyboardWillShow and keyboardWillHide lifecycle events) ensures the padding transitions in sync with the native keyboard slide animation rather than snapping after completion.
    • useSafeAreaPaddings(true) matches the exact bottom inset preserved under the keyboard by KeyboardAvoidingView, ensuring the "Total spend" footer sits flush against the top of the keyboard without truncation or unwanted spacing.
    • On wide desktop/web layouts, tabBarCoveredHeight evaluates to 0, so wide view behavior remains completely untouched.
  2. Automated Testing: Add unit test coverage in tests/ui/SearchPageNarrowTest.tsx:

    • Verify that when isKeyboardActive is false, SearchSelectionFooter receives tabBarCoveredHeight.
    • Verify that when isKeyboardActive is true, SearchSelectionFooter receives safeAreaPaddingBottom.

What alternative solutions did you explore? (Optional)?

  • Hook-level adjustment in useTabBarCoveredHeight/index.ios.ts: Returning isKeyboardActive ? safeAreaPaddingBottom : (isTabBarVertical ? bottomInset : getFloatingButtonsBottom(bottomInset)) directly inside the hook also eliminates the gap across tab root screens. Scoping the change directly to SearchPageNarrow's footer isolates the fix specifically to the Spend footer without altering scroll insets on screens that do not render this footer. Both implementations are completely viable.
  • Setting bottom padding to 0: This causes the bottom text of the footer to be slightly occluded because KeyboardAvoidingView reserves the safe area inset at the bottom. Preserving safeAreaPaddingBottom aligns perfectly flush with the keyboard boundary.
  • Hiding the footer entirely while typing: This removes the total spend calculation from view, which violates the expected requirement of keeping the total spend visible immediately above the keyboard.

Contributor details?

Your Expensify account email: [email protected] Upwork Profile Link: https://www.upwork.com/freelancers/~0131dae36abcf59374

kevinjosh10 avatar Nov 25 '26 04:11 kevinjosh10

🤖 ProposalPolice™ is tracking duplicate proposals for this issue using an OpenAI Conversation. This comment stores that Conversation's ID and can be safely ignored.

github-actions[bot] avatar Nov 25 '26 04:11 github-actions[bot]