import { tva } from '@gluestack-ui/utils/nativewind-utils'; import { GlassContainer as ExpoGlassContainer, GlassView as ExpoGlassView, type GlassContainerProps, type GlassViewProps } from 'expo-glass-effect'; import { styled } from 'nativewind'; import React from 'react'; import { Platform, View } from 'react-native'; const glassViewStyle = tva({ base: 'overflow-hidden', }); const glassContainerStyle = tva({ base: 'overflow-hidden', }); type IGlassViewProps = GlassViewProps & { className?: string; }; type IGlassContainerProps = GlassContainerProps & { className?: string; }; const StyledExpoGlassView = styled(ExpoGlassView, { className: 'style', }); const StyledExpoGlassContainer = styled(ExpoGlassContainer, { className: 'style', }); export const GlassView = React.forwardRef< React.ComponentRef, IGlassViewProps >(function GlassView({ className, ...props }, ref) { return ( Platform.OS === 'web' ? : ); }); GlassView.displayName = 'GlassView'; export const GlassContainer = React.forwardRef< React.ComponentRef, IGlassContainerProps >(function GlassContainer({ className, ...props }, ref) { return ( Platform.OS === 'web' ? : ); }); GlassContainer.displayName = 'GlassContainer'; export { isGlassEffectAPIAvailable, isLiquidGlassAvailable } from 'expo-glass-effect'; export type { GlassColorScheme, GlassContainerProps, GlassStyle, GlassViewProps } from 'expo-glass-effect';