Kantongku: onboarding personalisasi (nama + gender avatar 3D) + splash mewah + greeting dinamis

This commit is contained in:
Bro
2026-08-16 16:24:29 +07:00
parent 723c1995e2
commit 450f3f622a
10 changed files with 385 additions and 18 deletions
+12 -2
View File
@@ -10,6 +10,7 @@ import { EditTransactionScreen } from '../screens/EditTransactionScreen';
import { RecurringFormScreen } from '../screens/RecurringFormScreen';
import { TargetFormScreen } from '../screens/TargetFormScreen';
import { CategoryFormScreen } from '../screens/CategoryFormScreen';
import { OnboardingScreen } from '../screens/OnboardingScreen';
import { SavingsScreen } from '../screens/SavingsScreen';
import { SettingsScreen } from '../screens/SettingsScreen';
import type { TransactionType } from '../types';
@@ -24,6 +25,7 @@ export type RootTabParamList = {
export type RootStackParamList = {
Main: undefined;
Onboarding: undefined;
EditTransaksi: { transactionId: number };
RecurringForm: undefined;
TargetForm: undefined;
@@ -132,10 +134,18 @@ function MainTabs() {
);
}
export function RootNavigator() {
export function RootNavigator({
initialRoute = 'Main',
}: {
initialRoute?: 'Main' | 'Onboarding';
}) {
return (
<Stack.Navigator screenOptions={{ headerShown: false }}>
<Stack.Navigator
initialRouteName={initialRoute}
screenOptions={{ headerShown: false }}
>
<Stack.Screen name="Main" component={MainTabs} />
<Stack.Screen name="Onboarding" component={OnboardingScreen} />
<Stack.Screen
name="EditTransaksi"
component={EditTransactionScreen}