react-native-copilot
react-native-copilot copied to clipboard
Make Tooltip position-aware
Add the horizontalPosition
and verticalPosition
props to the Tooltip component, so that custom Tooltip components can use that information for things like rendering custom arrows.
(In my particular case, we wanted to render white text directly over the mask, and render a white SVG arrow that points in the correct direction for the highlighted element.)
Part of a series of PRs for more flexible styling:
- https://github.com/mohebifar/react-native-copilot/pull/238
- https://github.com/mohebifar/react-native-copilot/pull/241
+1