score:2
Every StackNavigator brings one header, first one is from RootNavigator = StackNavigator({
and bottom one that you see is coming from Clientes: { screen: StackNavigator({
.
First of all, seams header: null
in your Clientes: { screen: StackNavigator({
doesn't have any effect. You should try headerMode: 'none'
instead, this will remove the blank header from Index
but also header from Teste
with the title and back button, which is doesn't solve all your problems.
So I would suggest different navigators structure:
RootNavigator(StackNavigator)
- Welcome
- Index
- Teste
- User(TabNavigator)
- Clientes
- Opcoes
What you should you do next is set different header (default one, with back button) for Teste
inside component itself, something like this:
import { Header } from 'react-navigation';
Teste.navigationOptions = ({ navigation, screenProps }) => ({
return {
header: <Header {...screenProps} {...navigation} />
}
});
You can even make your own header Component and use it in Teste.navigationOptions.
Source: stackoverflow.com
Related Query
- React Navigation Header change with screen
- React Native, change React Navigation header styling
- Animate leaving screen with React Navigation
- React Navigation Header in Functional Components with Hooks
- Hide header on StackNavigator with React Navigation in React Native
- How can I replace screen with React Navigation for React Native
- Change the background color of a screen with react native
- Dynamically change header title on react navigation 5.x
- React navigation with hooks and header function - state is not updating
- I would like to change only clicked header link text color with react
- React Navigation with Auth screen in every tab
- I'm getting a blank screen with React JS Navigation
- Changing font size with respect to the change in screen resolution using styled-components in react
- React navigation with router go back button change state
- Passing props from StackNavigator to screen with React Navigation
- Why can't I change my input value in React even with the onChange listener
- Why can't I change my input value in React even with the onChange listener
- How to fetch the new data in response to React Router change with Redux?
- Change the cursor position in a textarea with React
- Re-render component when navigating the stack with React Navigation
- How to close a React Navigation modal with multiple screens in it
- React Navigation TabNavigator: Reset previous tab on tab change
- React Navigation - Gradient color for Header
- React Native Navigation Error: The action navigate with payload {"name": 192.168.100.189:19000", "params":{}} was not handled by any navigator
- Expo Camera only opening once with React Navigation
- Center a text in the screen with react native
- React - change this.state onClick rendered with array.map()
- React Navigation check if previous screen exists
- Change classes to an element with react
- How to hide bottom navigation bar on a specific screen in react native?
More Query from same tag
- function variable not being passed to setState correctly
- react PureRenderMixin alternatives?
- Store item to local storage after adding a new item using redux toolkit
- i need to give admin rights to upload images for an ecommerce website using react and nextjs
- React useCallback() and useEffect on event-handler keeps re - rendering
- React, Axios and Flask - AttributeError: 'NoneType' object has no attribute 'get'
- How does a chained export work in react without the components in between actually rendering the component?
- Display dynamic PDF from network drive in React App with Node server
- Dynamically set a class for menu element with className
- React Typescript prop error in ListItem (Material UI component)
- Why is typescript complaining that the variable can be undefined when my function checks that it's not undefined?
- "undefined is not a function" when trying to use react-mde markdown editor
- Wrong UI Component Deleted When Validating User Input React
- React sprite animation
- How to increase Chakra-UI Tabs/ TabsPanel width?
- @material-ui/core - How to set Textarea Value
- Cannot read properties of created ref with createRef()
- react input field not updating useState with onClick event
- Invalid Hook Call Full Stack Open 2021 Phonebook
- How to use throttle function after value change, after couple of seconds?
- How to remove the line of Ant design's "Step component"?
- Handle Error response React.js
- React, state not getting updated when calling the related setState
- Deciding Runtime Props Typescript
- React form loses focus on update
- "gatsby develop" cannot run in Mac M1
- Font size of tooltip in speeddialaction of React's Material UI
- How to Pass a method as props for an element in react
- ComponentDidCatch does not work
- React.js, Displaying Two Svg Images Next To Each Other With Space In Between