Skip to content

Topmost BottomNavigation scenes intercept clicks while not active #2885

@digitaltoad

Description

@digitaltoad

Current behaviour

Using BottomNavigation with React Navigation on the web, the top most scene, (over simplifying, right most tab), if mounted, will intercept clicks while not active. This seems to be a problem with pointer-events within that scene.

Expected behaviour

I would expect that when a tab is inactive, it does not intercept pointer events.

Code sample

https://snack.expo.io/@digitaltoad/bottonnavigation-react-navigation-web-bug

What have you tried

I've pulled back to 3.x versions of react-native-paper and this problem disappears.

Your Environment

software version
ios or android N/A
react-native 0.64.2
react-native-paper 4.9.2
react-native-vector-icons 8.1.0
node 15.10.0
yarn 1.22.10
npm 7.5.3
expo 42.0.0

https://snack.expo.io/@digitaltoad/bottonnavigation-react-navigation-web-bug

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions