You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At first, I wrote TabBar by myself through React-native router-Flux, and then I found this problem:
TypeError: undefined is not an object (evaluating '_$$_REQUIRE(_dependencyMap[31], "react-navigation-tabs").createMaterialTopTabNavigator')
Later, when I wrote TabBar according to the official Demo, this problem still appeared.
Version
Tell us which versions you are using:
I am using yarn install my package.json
At first, I wrote TabBar by myself through React-native router-Flux, and then I found this problem:
TypeError: undefined is not an object (evaluating '_$$_REQUIRE(_dependencyMap[31], "react-navigation-tabs").createMaterialTopTabNavigator')
Later, when I wrote TabBar according to the official Demo, this problem still appeared.
const Routers = () => (
<Stack key="root" titleStyle={{alignSelf: 'center'}} hideNavBar>
<Tabs
key="tabbar"
routeName="tabbar"
backToInitial
onTabOnPress={() => {
console.log('Back to initial and also print this');
}}
showLabel={false}
tabBarStyle={styles.tabBarStyle}
activeBackgroundColor="white"
inactiveBackgroundColor="rgba(255, 0, 0, 0.5)">
<Stack
key="tab_1"
title="Tab #1"
tabBarLabel="TAB #1"
inactiveBackgroundColor="#FFF"
activeBackgroundColor="#DDD"
icon={TabIcon}
navigationBarStyle={{backgroundColor: 'green'}}
titleStyle={{color: 'white', alignSelf: 'center'}}>
<Scene
key="tab_1_1"
component={TabView}
title="Tab #1_1"
onRight={() => alert('Right button')}
rightTitle="Right"
/>
The text was updated successfully, but these errors were encountered: