import { StyleSheet } from 'react-native'; import { tv } from 'tailwind-variants'; /** * Overlay style definition * * @note ANIMATED PROPERTIES (cannot be set via className): * The following property is animated and cannot be overridden using Tailwind classes: * - `opacity` - Animated for overlay show/hide transitions (idle: 0, open: 1, close: 0) * * To customize this property, use the `animation` prop on `BottomSheet.Overlay`: * ```tsx * * ``` * * To completely disable animated styles and apply your own via className or style prop, * set `isAnimatedStyleActive={false}` on `BottomSheet.Overlay`. */ const overlay = tv({ base: 'absolute inset-0 bg-black/20', }); const contentContainer = tv({ base: 'flex-1 p-5 pb-safe-offset-3 bg-transparent', }); const contentBackground = tv({ base: 'bg-overlay rounded-t-[32px]', }); const contentHandleIndicator = tv({ base: 'bg-divider', }); const close = tv({ base: '', }); const label = tv({ base: 'text-lg font-medium text-foreground', }); const description = tv({ base: 'text-base text-muted', }); const bottomSheetStyles = { overlay, contentContainer, contentBackground, contentHandleIndicator, close, label, description, }; export const styleSheet = StyleSheet.create({ contentContainer: { borderCurve: 'continuous', }, }); export default bottomSheetStyles;