- 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
19 lines
564 B
TypeScript
19 lines
564 B
TypeScript
import { BottomTabBarButtonProps } from "@react-navigation/bottom-tabs";
|
|
import { PlatformPressable } from "@react-navigation/elements";
|
|
import * as Haptics from "expo-haptics";
|
|
|
|
export function HapticTab(props: BottomTabBarButtonProps) {
|
|
return (
|
|
<PlatformPressable
|
|
{...props}
|
|
onPressIn={(ev) => {
|
|
if (process.env.EXPO_OS === "ios") {
|
|
// Add a soft haptic feedback when pressing down on the tabs.
|
|
Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Light);
|
|
}
|
|
props.onPressIn?.(ev);
|
|
}}
|
|
/>
|
|
);
|
|
}
|