将组件传递给本机抽屉

时间:2020-02-21 05:38:24

标签: react-native navigation

我正在尝试使基本的反应导航抽屉正常工作,但似乎并没有带我/显示我正在通过的组件。知道我在这里做错了吗?

import TodaysJobs from '../views/TodaysJobs';
import TomorrowsJobs from '../views/TomorrowsJobs';

<NavigationContainer>
    <Drawer.Navigator initialRouteName="TodaysJobs">
        <Drawer.Screen name="TodaysJobs" component={TodaysJobs} />
        <Drawer.Screen name="TomorrowsJobs" component={TomorrowsJobs} />
    </Drawer.Navigator>
</NavigationContainer>

0 个答案:

没有答案