Files
haptika/mobile/app/index.tsx
T
2026-09-08 09:07:27 +02:00

8 lines
345 B
TypeScript

import { Redirect } from 'expo-router';
import { useAppState } from '../src/state/app-state';
export default function Index() {
const {state, ready} = useAppState();
if (!ready) return null;
return <Redirect href={{pathname: '/screen/[id]', params: {id: state.onboarded ? (state.variant === 'watch' ? '560-251' : '431-2') : '2-2'}}} />;
}