-1
I can’t fix this mistake.. someone help me
I click the button to go to another page and it appears.. follows the code:
[This is the code of the menu component, it has a list of buttons with this structure]
The same component is with this structure..
const Menu = () => {...}
[Button structure]
<TapGestureHandler>
<TouchableOpacity onPress={() => this.props.navigation.navigate('Dashboard')}>
<AntDesign name="home" size={35} color="#fff" />
</TouchableOpacity>
</TapGestureHandler>
`
[File routers] Of course there are more screens, I only put one, but the others are the same, then there is a createSwitchNagivation and inside I call this Stack and dps I give an export
const Stack = createStackNavigator({
Dashboard: {
screen: Dashboard,
navigationOptions: {
headerShown: false,
}
}
}