Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6290

Can't duplicate function

$
0
0

When I try to duplicate functionit show RootNavigator error

Duplicate function implementation.ts(2393)

I try add export at the top but won't work

export {}

https://reactnavigation.org/docs/native-stack-navigator#options

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>  );}

Viewing all articles
Browse latest Browse all 6290

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>