diff --git a/src/components/Group.tsx b/src/components/Group.tsx index cba0f29..ad1006e 100644 --- a/src/components/Group.tsx +++ b/src/components/Group.tsx @@ -22,6 +22,7 @@ export function Group({ name, isActive, ...others }: Props) { borderWidth: 1, } }} + mr="$3" {...others} > (['costas', 'bíceps', 'tríceps', 'ombro', 'peito', 'pernas']) + const [selectedGroup, setSelectedGroup] = useState("costas"); + return ( - item as string} + renderItem={({ item }) => ( + setSelectedGroup(item as string)} + /> + )} + horizontal + showsHorizontalScrollIndicator={false} + contentContainerStyle={{ marginHorizontal: 32 }} + style={{ + marginVertical: 40, + maxHeight: 44, + minHeight: 44, + }} /> - ) }