import React from 'react' import { AnimatePresence, Button, Square, XStack, YStack, isWeb } from 'tamagui' import { useIsIntersecting } from './useOnIntersecting' const colors = ['$color9', '$color10', '$color11', '$color12'] as const export function AnimationsDelayDemo() { const ref = React.useRef(null) const hasIntersected = useIsIntersecting(ref, { once: true }) const [show, setShow] = React.useState(true) if (isWeb && !hasIntersected) { return } return ( {show && colors.map((color, i) => ( ))} ) }