From c6f2b6f85d151d6d2a2cc68eb05edd7a1e448106 Mon Sep 17 00:00:00 2001 From: jciespuertodelacruz Date: Tue, 20 Jan 2026 08:49:52 +0000 Subject: Initial commit Generated by create-expo-app 3.5.3. --- components/themed-text.tsx | 60 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 components/themed-text.tsx (limited to 'components/themed-text.tsx') diff --git a/components/themed-text.tsx b/components/themed-text.tsx new file mode 100644 index 0000000..d79d0a1 --- /dev/null +++ b/components/themed-text.tsx @@ -0,0 +1,60 @@ +import { StyleSheet, Text, type TextProps } from 'react-native'; + +import { useThemeColor } from '@/hooks/use-theme-color'; + +export type ThemedTextProps = TextProps & { + lightColor?: string; + darkColor?: string; + type?: 'default' | 'title' | 'defaultSemiBold' | 'subtitle' | 'link'; +}; + +export function ThemedText({ + style, + lightColor, + darkColor, + type = 'default', + ...rest +}: ThemedTextProps) { + const color = useThemeColor({ light: lightColor, dark: darkColor }, 'text'); + + return ( + + ); +} + +const styles = StyleSheet.create({ + default: { + fontSize: 16, + lineHeight: 24, + }, + defaultSemiBold: { + fontSize: 16, + lineHeight: 24, + fontWeight: '600', + }, + title: { + fontSize: 32, + fontWeight: 'bold', + lineHeight: 32, + }, + subtitle: { + fontSize: 20, + fontWeight: 'bold', + }, + link: { + lineHeight: 30, + fontSize: 16, + color: '#0a7ea4', + }, +}); -- cgit v1.2.3-54-g00ecf