Check out example codes for "how to show notification icon on tabbar item swift". It will help you in understanding the concepts better.

Code Example 1

if let tabItems = tabBarController?.tabBar.items {
    // In this case we want to modify the badge number of the third tab:
    let tabItem = tabItems[2]
    tabItem.badgeValue = "1"
}

Learn ReactJs, React Native from akashmittal.com