const Example = () => {
const {
colors
} = useTheme();
return <ScrollView _contentContainerStyle={{
px: "20px",
mb: "4",
minW: "72"
}}>
<Center mt="3" mb="4">
<Heading fontSize="xl">Cyan</Heading>
</Center>
<VStack flex="1">
{Object.keys(colors.cyan).map((key, index) => {
if (index >= 1 && index <= 5) return <Center py="4" bg={`cyan.${key}`}>
{key}
</Center>;
})}
</VStack>
<Center mt="8" mb="4">
<Heading fontSize="xl">Yellow</Heading>
</Center>
<VStack flex="1">
{Object.keys(colors.cyan).map((key, index) => {
if (index >= 1 && index <= 5) return <Center py="4" bg={`yellow.${key}`}>
{key}
</Center>;
})}
</VStack>
<Center mt="8" mb="4">
<Heading fontSize="xl"> Violet</Heading>
</Center>
<VStack flex="1">
{Object.keys(colors.violet).map((key, index) => {
if (index >= 1 && index <= 5) return <Center py="4" bg={`violet.${key}`}>
{key}
</Center>;
})}
</VStack>
</ScrollView>;
};