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

how do I fix Expected 0 arguments, but got 1 in createDrawerNavigator

$
0
0

Please help me to fix error with drawer navigator
here is the code of drawer.tsx
error: Expected 0 arguments, but got 1. in createDrawerNavigator function

import { createDrawerNavigator } from "@react-navigation/drawer";import AboutStack from "./aboutStack";import HomeStack from "./homeStack";const DrawerNavigator = createDrawerNavigator({  Home: {    screen: HomeStack,  },  About: {    screen: AboutStack,  },});

screenshot of the error:

drawer.tsx


Viewing all articles
Browse latest Browse all 6287

Trending Articles



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