callstack / react-native-paper

Material Design for React Native (Android & iOS)
https://reactnativepaper.com
MIT License
12.76k stars 2.08k forks source link

Tooltip component theme property isn't working #3620

Closed JaitenThomas closed 1 year ago

JaitenThomas commented 1 year ago

Is your feature request related to a problem? Please describe. I'm always frustrated when i'm trying to theme the Tooltip component using my custom theme and I cannot apply an override theme property for it.

It seems that the docs (https://callstack.github.io/react-native-paper/tooltip.html) has reference to a theme property but it not typed. I believe it gets the custom theme by useInternalTheme so it might not need it?

Describe the solution you'd like I would like a "backgroundColor" and "textColor" property for "Tooltip" so that I can easier override.

Describe alternatives you've considered I can redo my whole custom theme to ensure that the it matches the surface and onSurface that the tooltip uses, but this seems extreme

Additional context "react-native-paper": "5.1.2",

JaitenThomas commented 1 year ago

Closed as bumping to react-native-paper 5.1.4 has optional Tooltip "theme" param for theme overriding.