roninoss / rn-primitives

Style-agnostic, accessible React Native components for iOS, Android, and Web
https://rnprimitives.com
MIT License
424 stars 12 forks source link

TooltipProvider is missing in tooltip primitive #43

Closed megacherry closed 1 month ago

megacherry commented 1 month ago

I wanted to use the new sidebar from shadcn and saw that the TooltipProvider is missing in the tooltip primitive.

I don't know if it's a limition or should the primitives be identical to radix?

mrzachnugent commented 1 month ago

Hey @megacherry the TooltipProvider from radix-ui is included in the TooltipPrimitive.Root from rn-primitives. You can checkout https://github.com/roninoss/rn-primitives/blob/main/packages/tooltip/src/tooltip.web.tsx#L47 to see how it is implement.

So it should work the same way without the need of using TooltipProvider yourself.