UNPKG

@danielsaraldi/react-native-blur-view

Version:
34 lines 1.14 kB
import { View } from 'react-native'; import type { BlurViewProps } from './@types'; /** * @description The `BlurView` component is a React Native component that * provides a native blur effect to its children. * * @see https://github.com/DanielAraldi/react-native-blur-view?tab=readme-ov-file#blurview * * @since 0.1.0 * * @example * ```tsx * import React, { useRef } from 'react'; * import { View, Text } from 'react-native'; * import { BlurView, BlurTarget } from '@danielsaraldi/react-native-blur-view'; * import { styles } from './styles'; * * const MyComponent = () => { * const blurTargetRef = useRef<View | null>(null); * * return ( * <View style={styles.container}> * <BlurTarget ref={blurTargetRef} style={styles.blurTarget} /> * * <BlurView blurTarget={blurTargetRef} style={styles.blurView}> * <Text style={styles.blurText}>Blurred Content</Text> * </BlurView> * </View> * ); * }; * ``` */ export declare const BlurView: import("react").ForwardRefExoticComponent<BlurViewProps & import("react").RefAttributes<View>>; //# sourceMappingURL=BlurView.d.ts.map