Kantongku: hapus onboarding & splash screen (langsung ke Beranda)
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user