managarten/apps-archived/nutriphi/apps/mobile/app/index.tsx
Till-JS 61d181fbc2 chore: archive inactive projects to apps-archived/
Move inactive projects out of active workspace:
- bauntown (community website)
- maerchenzauber (AI story generation)
- memoro (voice memo app)
- news (news aggregation)
- nutriphi (nutrition tracking)
- reader (reading app)
- uload (URL shortener)
- wisekeep (AI wisdom extraction)

Update CLAUDE.md documentation:
- Add presi to active projects
- Document archived projects section
- Update workspace configuration

Archived apps can be re-activated by moving back to apps/

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-29 07:03:59 +01:00

52 lines
1.4 KiB
TypeScript

import { router } from 'expo-router';
import { SafeAreaView } from 'react-native-safe-area-context';
import { MealList } from '../components/meals/MealList';
import { FloatingActionButton } from '../components/ui/FloatingActionButton';
import { CameraModal } from '../components/camera/CameraModal';
import { MealWithItems } from '../types/Database';
import { useAppStore } from '../store/AppStore';
export default function Home() {
const { toggleCameraModal, showCameraModal, cameraMode } = useAppStore();
const handleMealPress = (meal: MealWithItems) => {
router.push(`/meal/${meal.id}`);
};
const handleCameraPress = () => {
toggleCameraModal(true, 'camera');
};
const handleGalleryPress = () => {
toggleCameraModal(true, 'gallery');
};
return (
<>
<SafeAreaView className="flex-1 bg-gray-50 dark:bg-gray-900">
<MealList onMealPress={handleMealPress} />
{/* Camera Button (larger, centered) */}
<FloatingActionButton
onPress={handleCameraPress}
sfSymbol="camera"
fallbackIcon="camera"
size="large"
position="center"
/>
{/* Gallery Button (smaller, right) */}
<FloatingActionButton
onPress={handleGalleryPress}
sfSymbol="photo"
fallbackIcon="image"
size="normal"
position="right"
/>
</SafeAreaView>
{showCameraModal && <CameraModal mode={cameraMode || 'camera'} />}
</>
);
}