8 lines
345 B
TypeScript
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'}}} />;
|
|
}
|