标题后退按钮未显示在堆栈屏幕中

时间:2021-01-09 21:33:29

标签: react-native

我有标签导航器,其中一个标签包含一个堆栈导航器:

<Tab.Screen 
    name="Create" 
    component={createFlowStack} 
    options={{
      tabBarLabel: ' ',
      tabBarIcon: ({ color, size }) => (
        <Ionicons name="md-add-circle" size={size} color={color} />
      ),
    }}
    
/>

在“创建流程堆栈”中,用户通过流程创建帖子。选择图像,添加标题等。我有一个我编码的后退按钮,但出于用户体验的原因,想要删除后退按钮并在标题中显示后退按钮,如下所示:

enter image description here

所以我将此代码添加到“创建流程堆栈”中:

<CreateStack.Screen 
     name="GainScreenshot" 
     component={GainScreenshot} 
     options=  {{
     headerBackTitle: "back"
}}/>

但什么也没显示:

enter image description here

我想去掉屏幕中的蓝色后退按钮,并用标题中的后退按钮替换它。我怎样才能做到这一点?是不是create栈嵌套在tab栈里面的问题?

0 个答案:

没有答案