- Single-screen chat interface with Timmy's sovereign AI personality - Text messaging with real-time AI responses via server chat API - Voice recording and playback with waveform visualization - Image sharing (camera + photo library) with full-screen viewer - File attachments via document picker - Dark arcane theme matching the Timmy Time dashboard - Custom app icon with glowing T circuit design - Timmy system prompt ported from dashboard prompts.py - Unit tests for chat utilities and message types
22 lines
480 B
TypeScript
22 lines
480 B
TypeScript
import { useEffect, useState } from "react";
|
|
import { useColorScheme as useRNColorScheme } from "react-native";
|
|
|
|
/**
|
|
* To support static rendering, this value needs to be re-calculated on the client side for web
|
|
*/
|
|
export function useColorScheme() {
|
|
const [hasHydrated, setHasHydrated] = useState(false);
|
|
|
|
useEffect(() => {
|
|
setHasHydrated(true);
|
|
}, []);
|
|
|
|
const colorScheme = useRNColorScheme();
|
|
|
|
if (hasHydrated) {
|
|
return colorScheme;
|
|
}
|
|
|
|
return "light";
|
|
}
|