timomeh / react-native-material-bottom-navigation

πŸ’…πŸ”§πŸ‘Œ a beautiful, customizable and easy-to-use material design bottom navigation for react-native
MIT License
710 stars 127 forks source link

The navigation disappears when pressing the button #51

Closed ahzanfariz closed 7 years ago

ahzanfariz commented 7 years ago

What kind of Issue is this?

How are you using the Bottom Navigation?

Related Libraries: (If you use the standalone version together with other libraries, please list them here. If not, delete this line.)

Expected behavior

(how to make the navigation work properly??)

Actual behavior

(The navigation disappears when pressing the button )

Additional description and resources

(I have a navigation menu in it there are several buttons, when I press the button in the navigation menu. as a result my navigation menu disappears, and its label follows the title I have set in staticNavigationOptions. I try position: 'absolute' and flex: 1, the navigation disappears.)

(normal navigation: asdaw ) when i press the menu navigable button: home my code snippet: code

What did you do to find a solution?

(I have done a lot of things for this case, I am looking for these solutions in Github and stackoverflow and Docs)

Environment

timomeh commented 7 years ago

So, to clarify, your problem is that "Menu" changes to "Berita" and the Menu-Icon disappears?

If you take a look at: https://reactnavigation.org/docs/navigators/tab In those docs you can see navigationOptions.tabBarLabel and navigationOptions.tabBarIcon, where you need to specify the label and icon for this screen. If you set those to "Menu" and to your Menu Icon, it should be correct.

ahzanfariz commented 7 years ago

Thanks for a quick reply, it is working