Skip to content

fix(android): prevent hidden tab bar from intercepting touches - #634

Open
LeleDallas wants to merge 2 commits into
callstack:mainfrom
LeleDallas:fix/android-buttons-bounds-overlapping
Open

LeleDallas wants to merge 2 commits into
callstack:mainfrom
LeleDallas:fix/android-buttons-bounds-overlapping

Conversation

@LeleDallas

Copy link
Copy Markdown
Contributor

PR Description

On Android, a hidden bottom tab bar could intercept touches intended for the screen beneath it. The tab bar now disables pointer events when its visibility is GONE and uses normal pointer handling otherwise.

How to test?

  • Run the Android example and hide the bottom tab bar.
  • Tap content in the area the bar previously occupied; verify the underlying screen receives the touch.
  • Show the tab bar and verify its tabs remain interactive.

In order to test it, add this button here:

{tabBarHidden && (
        <Pressable
          accessibilityRole="button"
          onPress={() => setTouchCount((count) => count + 1)}
          style={styles.touchTestButton}
        >
          <Text style={styles.touchTestButtonText}>
            Touch test: {touchCount}
          </Text>
        </Pressable>
)}


touchTestButton: {
    position: 'absolute',
    bottom: 0,
    left: 24,
    right: 24,
    minHeight: 56,
    justifyContent: 'center',
    alignItems: 'center',
    backgroundColor: '#1565C0',
    borderRadius: 8,
  },
  touchTestButtonText: {
    color: '#FFFFFF',
    fontSize: 16,
    fontWeight: '600',
  },

Screenshots

Master Header
Screen.Recording.2026-11-25.at.13.01.36.mov
Screen.Recording.2026-11-25.at.12.59.25.mov

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant