как мне кажется, проблема в переменной, поскольку вы объявили конфликт
Обновлено
const tab = createMaterialTopTabNavigator({
test: {screen: Screens.test},
},
{
tabBarPosition: 'bottom',
animationEnabled: false,
tabBarOptions:
{
style: {
borderTopWidth: 0.4,
elevation: 6,
borderColor: theme.colors.grey,
backgroundColor: theme.colors.inverse,
},
activeTintColor: theme.colors.active,
inactiveTintColor: theme.colors.grey,
indicatorStyle: {
borderBottomColor: theme.colors.primary,
borderBottomWidth: 1
},
showIcon: true,
showLabel: false,
},
})
const Drawer = createDrawerNavigator({
tab: {screen: tab}
},{
contentComponent: SideDrawer,
})
const test = StackNavigator({
First: {
screen: Screens.SplashScreen
},
drawer:{screen: Drawer},
}, {
headerMode: 'none',
});
export default class App extends React.Component {
render() {
return (
<View style={{flex: 1}}>
<test/>
</View>
);
}
}
, поскольку я использовал здесь три навигатора.