From 5ccb873720ad3f668412fadc3aa8954e4e6d4fd3 Mon Sep 17 00:00:00 2001 From: avivash Date: Thu, 12 Jun 2025 10:48:45 -0700 Subject: [PATCH] Fix: Align PositionedContentProps style with Pressable style prop Components using PositionedContentProps are only typed to receive a single style object even though they actually work with arrays of style objects too --- packages/types/src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/types/src/index.ts b/packages/types/src/index.ts index 40f26e23..3da75f0c 100644 --- a/packages/types/src/index.ts +++ b/packages/types/src/index.ts @@ -1,4 +1,4 @@ -import type { Pressable, Text, View, ViewStyle } from 'react-native'; +import type { Pressable, StyleProp, Text, View, ViewStyle } from 'react-native'; type ComponentPropsWithAsChild> = React.ComponentPropsWithoutRef & { asChild?: boolean }; @@ -36,7 +36,7 @@ type FocusOutsideEvent = CustomEvent<{ originalEvent: FocusEvent }>; */ interface PositionedContentProps { forceMount?: true | undefined; - style?: ViewStyle; + style?: StyleProp; alignOffset?: number; insets?: Insets; avoidCollisions?: boolean;