diff --git a/lite.todo/app/(tabs)/index.tsx b/lite.todo/app/(tabs)/index.tsx index f298853..94a9244 100755 --- a/lite.todo/app/(tabs)/index.tsx +++ b/lite.todo/app/(tabs)/index.tsx @@ -1,5 +1,23 @@ +import { Text } from "@/components/ui/text"; +import { VStack } from "@/components/ui/vstack"; +import { useTodos } from "@/store/useTodos"; +import { useState } from "react"; import { SafeAreaView } from "react-native-safe-area-context"; export default function ActiveTab() { - return ; + const { activeTodos, leftCount, add, toggle, completeAll } = useTodos(); + const [title, setTitle] = useState(""); + + const onAdd = () => { + add(title); + setTitle(""); + }; + + return ( + + + 할일 + + + ); }