/** * Example component demonstrating theme usage * Shows different ways to use the theme system */ import React from "react"; import { View, Text, TouchableOpacity, ScrollView } from "react-native"; import { ThemedText } from "@/components/themed-text"; import { ThemedView } from "@/components/themed-view"; import { useAppTheme } from "@/hooks/use-app-theme"; import { useThemeColor } from "@/hooks/use-theme-color"; export function ThemeExampleComponent() { const { colors, styles, utils } = useAppTheme(); // Example of using useThemeColor hook const customTextColor = useThemeColor({}, "textSecondary"); const customBackgroundColor = useThemeColor({}, "surfaceSecondary"); return ( Theme Examples {/* Using themed components */} Themed Components This is a themed text This is bold themed text {/* Using theme colors directly */} Direct Color Usage Using colors.text directly Primary color text {/* Using pre-styled components */} Pre-styled Components Primary Button Secondary Button {/* Status containers */} Status Indicators Success Message Warning Message Error Message {/* Using opacity colors */} Opacity Colors Primary with 10% opacity background Error with 20% opacity background {/* Theme utilities */} Theme Utilities Is Dark Mode: {utils.isDark ? "Yes" : "No"} Is Light Mode: {utils.isLight ? "Yes" : "No"} Toggle Theme (Light/Dark) {/* Custom themed component example */} Custom Component Custom component using useThemeColor ); }