react-native-material-bottom-navigation icon indicating copy to clipboard operation
react-native-material-bottom-navigation copied to clipboard

Update default Tab index

Open mustafaskyer opened this issue 6 years ago • 2 comments

I have many routes [likes, search, home, profile, settings] and suggest making the default route to be in the middle, or we can add defaultTab prop into tabs property which should be the default regards

mustafaskyer avatar Dec 20 '18 21:12 mustafaskyer

Thank you very much for your contribution!

Setting it to the middle tab seems too specific for your use case. But adding the defaultTabIndex prop as you suggested sounds good. The same thing was already discussed in https://github.com/timomeh/react-native-material-bottom-navigation/issues/102#issuecomment-415427696. It would be great if you could implement defaultTabIndex.

Bonus points if no tab would be active if the defaultTabIndex prop isn't set. 🙂 This would finally resolve #102

timomeh avatar Dec 20 '18 21:12 timomeh

thanks, @timomeh commit updated :), now expects defaultTabIndex, regards

mustafaskyer avatar Dec 20 '18 21:12 mustafaskyer