react-native-spotlight-tour icon indicating copy to clipboard operation
react-native-spotlight-tour copied to clipboard

Question: How to display arrow

Open ntxl1210 opened this issue 2 years ago • 1 comments

I created a ref and added it into floatingProps middleware but the arrow didn't display. Here is my code: const arrowRef = useRef(null); ... floatingProps={{ middleware: [ offset(4), shift({ padding: 10, }), flip(), arrow({ element: arrowRef }), ], placement: 'bottom', }} ...

ntxl1210 avatar Feb 06 '24 10:02 ntxl1210

I'm sorry for not getting back to you sooner. I gave it a try, and I can see the problem. With the current implementation, there's no way to get the arrow's x and y positions. We'll need to change the approach of the middleware prop a bit. I'll be working on this next so we can provide a solution in the next release. Thanks for the report! 🙂

JoseLion avatar Mar 27 '24 23:03 JoseLion