/
GEOSHEV
/
Event-app
Обзор
Документация
Войти
/
GEOSHEV
/
Event-app
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
develop
src/components/ui/Text/Text.tsx
23 строки
522 B
Gosha
feat: make register and login screen (without logic)
13 май 2026, 15:58
13 май 2026, 15:58
1783129
Код
Авторство
О чём код?
import { theme } from "@/src/constants/theme"; import { Text as RNText, TextProps } from "react-native"; import { styles } from "./styles"; type Variant = "h1" | "h2" | "body" | "caption"; interface Props extends TextProps { variant?: Variant; color?: string; } export const Text = ({ variant = "body", color, style, ...props }: Props) => { return ( <RNText {...props} style={[ styles[variant], { color: color || theme.colors.text.primary }, style, ]} /> ); };