In the screenshot below, the pointer is on the second item and the background does not darken as expected.
What have you tried so far?
The component uses the TouchableRipple component, which behaves as expected for the hover state. However, it overrides the `backgroundColor' style property:
Current behaviour
The Drawer.Item component does not render the hover state in web applications.
Expected behaviour
Render a hover state as it was added in this PR https://github.com/callstack/react-native-paper/pull/3909 for the Drawer.Item component
How to reproduce?
Code example https://snack.expo.dev/@maasto/drawer-item-hover-repro
Preview
In the screenshot below, the pointer is on the second item and the background does not darken as expected.
What have you tried so far?
The component uses the
TouchableRipple
component, which behaves as expected for the hover state. However, it overrides the `backgroundColor' style property:When I remove this backgroundColor from the style props in local, it works as expected.
Your Environment