How do I highlight the current tab using a custom drawer navigator in React Native

对着背影说爱祢 提交于 2020-03-05 04:42:07

问题


Using a custom drawer navigator in React Native, how do I highlight the current screen name? Is there a prop that is supposed to be passed? For example in the image, I am on the "Home" screen. How do I know the screen I am on to change the text colour of home, for example.

来源:https://stackoverflow.com/questions/51349440/how-do-i-highlight-the-current-tab-using-a-custom-drawer-navigator-in-react-nati

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!