react-native-copilot icon indicating copy to clipboard operation
react-native-copilot copied to clipboard

Make Tooltip position-aware

Open lindboe opened this issue 2 years ago • 1 comments

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

lindboe avatar Sep 14 '21 22:09 lindboe

+1

naoyamakino avatar Sep 14 '21 22:09 naoyamakino