import {StyleSheet, type ViewProps} from "react-native"
import Animated, {type AnimatedProps} from "react-native-reanimated"

const styles = StyleSheet.create({
    invisible: {height: 0, opacity: 0, width: 0},
})

export function InvisibleView(props: Pick<AnimatedProps<ViewProps>, "onLayout">) {
    return <Animated.View style={styles.invisible} pointerEvents="none" {...props} />
}
