I am trying to dynamically add tabs to a TabNavigator. Tabs are removed on certain event on the client and I need to add it again. Problem is that even though tabs are added correctly, the selected tab header is not correct.
For example, If I have two tabs and the second tab is selected when they are removed. On adding the tabs again, first tab should be the selected one. But instead the second tab header is shown as selected but the content is of first tab. I have attached sample example for reference. Please suggest what do I need to do to fix the problem. Thanks in advance. Pradeep

