From 9694ea861b25ee95b756da2982c8ec8861c1c598 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carsten=20Daureh=C3=B8j?= Date: Mon, 5 May 2025 08:36:02 +0200 Subject: [PATCH] refactor: update ActionSheetProps to use StyleProp for styling properties --- src/types.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/types.ts b/src/types.ts index c4a8d30..9e9cc7a 100644 --- a/src/types.ts +++ b/src/types.ts @@ -5,6 +5,7 @@ import { LayoutRectangle, TouchableOpacityProps, ViewStyle, + StyleProp, } from 'react-native'; import EventManager from './eventmanager'; import {Route} from './hooks/use-router'; @@ -175,7 +176,7 @@ export type ActionSheetProps = { /** * Style the top indicator bar in ActionSheet. */ - indicatorStyle?: ViewStyle; + indicatorStyle?: StyleProp; /** * Color of the overlay/backdrop. @@ -199,7 +200,7 @@ export type ActionSheetProps = { /** * Any custom styles for the container. * */ - containerStyle?: ViewStyle; + containerStyle?: StyleProp; /** * Control closing ActionSheet by touching on backdrop.