Kantongku: hapus onboarding & splash screen (langsung ke Beranda)

This commit is contained in:
Bro
2026-08-16 16:06:41 +07:00
parent 6196b7cd61
commit db2f3dc7a4
7 changed files with 5 additions and 240 deletions
+2 -12
View File
@@ -10,7 +10,6 @@ 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';
@@ -25,7 +24,6 @@ export type RootTabParamList = {
export type RootStackParamList = {
Main: undefined;
Onboarding: undefined;
EditTransaksi: { transactionId: number };
RecurringForm: undefined;
TargetForm: undefined;
@@ -134,18 +132,10 @@ function MainTabs() {
);
}
export function RootNavigator({
initialRoute = 'Main',
}: {
initialRoute?: 'Main' | 'Onboarding';
}) {
export function RootNavigator() {
return (
<Stack.Navigator
initialRouteName={initialRoute}
screenOptions={{ headerShown: false }}
>
<Stack.Navigator screenOptions={{ headerShown: false }}>
<Stack.Screen name="Main" component={MainTabs} />
<Stack.Screen name="Onboarding" component={OnboardingScreen} />
<Stack.Screen
name="EditTransaksi"
component={EditTransactionScreen}