import React from 'react'; import { Button, useContrastText, useAccessibleColors, useTheme, Center, HStack, Switch, Text, Stack, } from 'native-base'; const ButtonTemplate = ({ shade }: any) => { const colorContrast = useContrastText(`emerald.${shade}`); return (
); }; export const Example = () => { const [, , toggleAccessibleColors] = useAccessibleColors(); const { colors } = useTheme(); return (
{Object.keys(colors.yellow).map((key, index) => { if (index > 2 && index < 9) return ; })} Toggle Accessible Colors
); };