import React from 'react'; import { View } from 'react-native'; import { Text } from './Text'; import { useThemeStore, useIsDark, useCurrentColors, useRootClassName } from '~/store/themeStore'; import { themes } from '~/themes'; export function ThemeDebug() { const { theme, mode } = useThemeStore(); const isDark = useIsDark(); const currentColors = useCurrentColors(); const rootClassName = useRootClassName(); // Fallback to default theme if currentColors is undefined const safeColors = currentColors || themes.default.light; return ( Theme Debug Theme: {theme} Mode: {mode} Is Dark: {isDark ? 'true' : 'false'} Root Class: {rootClassName} Primary Color: {safeColors.primary} Colors undefined: {currentColors ? 'no' : 'yes'} Primary Background Test {/* Test with inline styles */} Inline Style Test ); }