在下面的代码中,我进入第 1 行,有人可以告诉我解释以及我应该更改什么吗
<Drawer.Navigator
screenOptions={{
headerStyle: { backgroundColor: colorPalette.blue1, height: 80 },
headerTintColor: "white",
// headerLeft: () => <View></View>
headerTitle: () => <Image source={appLogo} />, // line 1
headerRight: () => <HeaderRight />,
}}
drawerContent={(props) => (
<DrawerContent navigation={navigation} {...props}></DrawerContent>
)}
>
Run Code Online (Sandbox Code Playgroud)
我想在其中渲染一个组件?
react-native ×1