You can style popups using standard React Native ViewStyle and TextStyle properties.
Native Platform Behavior
On native, the rendering path depends on the children of Tooltip.Popup:
- String children: These are drawn by the native bubble. This path allows the bubble to measure itself against the screen rather than the trigger, preventing text squeezing. Supported properties are:
backgroundColor, borderRadius, padding*, width/maxWidth, fontSize, color, fontWeight, and fontFamily. Other properties are ignored. - Other children (Components/Views): These are rendered by React Native inside the popup window. In this mode, every style and component works. Note: You must give the outermost view its own background and radius, as that view acts as the bubble.
Web Platform Behavior
On web, all ViewStyle and TextStyle properties work as expected.
Toasts
Toasts are ordinary React Native views on all platforms and can be styled freely.
<Tooltip.Popup
style={{
backgroundColor: "rgba(54,58,62,0.85)",
borderRadius: 12,
paddingHorizontal: 20,
paddingVertical: 12,
maxWidth: 240,
fontSize: 14,
lineHeight: 21,
color: "#fff",
}}
>
Drag to reschedule
<Tooltip.Arrow width={14} height={8} />
</Tooltip.Popup>