import { Ionicons } from "@expo/vector-icons"; import * as Haptics from "expo-haptics"; import { Platform, Pressable } from "react-native"; import Animated, { FadeOut, ZoomIn } from "react-native-reanimated"; import { withUniwind } from "uniwind"; import { useAppTheme } from "@/contexts/app-theme-context"; const StyledIonicons = withUniwind(Ionicons); export function ThemeToggle() { const { toggleTheme, isLight } = useAppTheme(); return ( { if (Platform.OS === "ios") { Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Light); } toggleTheme(); }} className="px-2.5" > {isLight ? ( ) : ( )} ); }