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