diff --git a/src/components/ContainerBorderTopCurved.tsx b/src/components/ContainerBorderTopCurved.tsx index b52b496..faa1c2b 100644 --- a/src/components/ContainerBorderTopCurved.tsx +++ b/src/components/ContainerBorderTopCurved.tsx @@ -1,17 +1,44 @@ import { containers } from "@styles/Commons"; +import { useEffect } from "react"; +import { Animated, Dimensions } from "react-native"; import Box from "./bases/Box"; type Props = { children: React.ReactNode }; const ContainerBorderTopCurved = ({ children }: Props) => { + const animated = new Animated.Value(0); + + useEffect(() => { + Animated.spring(animated, { + toValue: 1, + useNativeDriver: true, + }).start(); + }, [animated]); + return ( - - {children} - + + {children} + + ); };