Closed damathryx closed 7 years ago
The BottomNavigation can't find your icon definitions, or rather your navigationOptions.
Are you sure you can put navigationOptions
inside the RouteConfigs? To my knowledge, the navigationOptions have to be a static inside your screen class, cf.:
Try moving navigationOptions
to your screens.
Also I'm a bit curious: you stated you tried it with react-navigation's own TabBar. Did it work with the TabBar? Using navigationOptions
inside the RouteConfig sounds new to me.
@timomeh Yes, it was working with TabBar and actually its working now. I’m using functional components for screens. I don’t know what happened. I might have done something wrong. Anyway, its fine now. Thanks for your awesome work.
What kind of Issue is this?
How are you using the Bottom Navigation?
Expected behavior
Will show tabbar with icons
Actual behavior
getting error undefined on render method of navigationComponent
Additional description and resources
What did you do to find a solution?
I tried the example but this also happens
Environment