aksonov / react-native-router-flux

The first declarative React Native router
MIT License
8.99k stars 2.11k forks source link

TypeError: undefined is not an object (evaluating '_$$_REQUIRE(_dependencyMap[31], "react-navigation-tabs").createMaterialTopTabNavigator') #3815

Open linweiboy opened 2 years ago

linweiboy commented 2 years ago

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 = () => ( <Router sceneStyle={styles.scene} onStateChange={stateHandler} uriPrefix={prefix} key="rootRouter">

{ console.log('Back to initial and also print this'); }} showLabel={false} tabBarStyle={styles.tabBarStyle} activeBackgroundColor="white" inactiveBackgroundColor="rgba(255, 0, 0, 0.5)"> alert('Right button')} rightTitle="Right" /> Right} /> alert('onBack button!')} hideDrawerButton backTitle="Back!" panHandlers={null} />

NagavikasPulluri commented 2 years ago

what is the react-navigation version you are using?

Manikanta-GEP commented 2 years ago

@NagavikasPulluri 4.4.4

hsnMoghadasi commented 1 year ago

+1

hsnMoghadasi commented 1 year ago

I fix this bug by downgrading this package :

"react-native-reanimated": "^1.7.1", "react-native-gesture-handler": "^1.6.1", "react-native-router-flux": "^4.2.0",