// React Native type overrides to fix component type conflicts declare module 'react-native' { import * as React from 'react'; // Basic components export const View: React.ComponentType; export const Text: React.ComponentType; export const TouchableOpacity: React.ComponentType; export const TextInput: React.ComponentType; export const FlatList: React.ComponentType; export const Switch: React.ComponentType; export const ActivityIndicator: React.ComponentType; export const ScrollView: React.ComponentType; export const Image: React.ComponentType; export const Modal: React.ComponentType; export const SafeAreaView: React.ComponentType; export const StatusBar: React.ComponentType; // Style types export interface ViewStyle { [key: string]: any; } export interface TextStyle { [key: string]: any; } export interface ImageStyle { [key: string]: any; } // Animated export const Animated: { View: React.ComponentType; Text: React.ComponentType; Image: React.ComponentType; Value: any; timing: any; spring: any; sequence: any; loop: any; parallel: any; stagger: any; delay: any; }; // Alert export const Alert: { alert(title: string, message?: string, buttons?: any[]): void; }; // Dimensions export const Dimensions: { get(dim: string): { width: number; height: number }; }; // StyleSheet export const StyleSheet: { create(styles: T): T; }; // AsyncStorage (mock for web) export const AsyncStorage: { getItem(key: string): Promise; setItem(key: string, value: string): Promise; removeItem(key: string): Promise; clear(): Promise; getAllKeys(): Promise; }; } // React type overrides declare module 'react' { export type FC

= React.FunctionComponent

; export const useState: (initialState?: T | (() => T)) => [T | undefined, (newState: T | ((prevState: T | undefined) => T)) => void]; export const useEffect: (effect: () => void | (() => void), deps?: any[]) => void; export const useCallback: any>(callback: T, deps: any[]) => T; export const useRef: (initialValue?: T) => { current: T | undefined }; export const useMemo: (factory: () => T, deps: any[]) => T; } // Global type declarations declare global { interface Window { addEventListener(type: string, listener: (event: Event) => void): void; removeEventListener(type: string, listener: (event: Event) => void): void; } interface WeakRef { deref(): T | undefined; } var WeakRef: { new (target: T): WeakRef; }; function setTimeout(callback: (...args: any[]) => void, ms: number, ...args: any[]): number; function setInterval(callback: (...args: any[]) => void, ms: number, ...args: any[]): number; function clearTimeout(id: number): void; function clearInterval(id: number): void; }