When attempting to replicate a function, I encountered a RootNavigator error
Error in duplicate function implementation.ts(2393)
I tried adding an export at the top but it didn't resolve the issue
export {}
Link to React Navigation options documentation
const DashboardStack = createNativeStackNavigator<RootStackParamList>();
function RootNavigator() {
return (
<DashboardStack.Navigator>
<DashboardStack.Screen name="Root" component={BottomTabNavigator} options={{ headerShown: false }} />
<DashboardStack.Screen name="NotFound" component={NotFoundScreen} options={{ title: 'Oops!' }} />
<DashboardStack.Group screenOptions={{ presentation: 'modal' }}>
</DashboardStack.Group>
</DashboardStack.Navigator>
);
}
const ActivityStack = createNativeStackNavigator<RootStackParamList>();
function RootNavigator() {
return (
<DashboardStack.Navigator>
<DashboardStack.Screen name="Root" component={BottomTabNavigator} options={{ headerShown: false }} />
<DashboardStack.Screen name="NotFound" component={NotFoundScreen} options={{ title: 'Oops!' }} />
<DashboardStack.Group screenOptions={{ presentation: 'modal' }}>
</DashboardStack.Group>
</DashboardStack.Navigator>
);
}