message: Updated page when selected tab changes
diff: @@ -3,9 +3,11 @@ package com.navigation.reactnative;
  import android.content.Context;
  import android.graphics.drawable.Drawable;
  import android.view.Menu;
  +import android.view.MenuItem;
  import android.view.View;
  import android.view.ViewGroup;
  +import androidx.annotation.NonNull;
  import androidx.annotation.Nullable;
  import androidx.viewpager.widget.PagerAdapter;
  import androidx.viewpager.widget.ViewPager;
  @@ -38,7 +40,7 @@ public class TabNavigationView extends BottomNavigationView implements TabView {
  }
  @Override
  - public void setupWithViewPager(@Nullable ViewPager viewPager) {
  + public void setupWithViewPager(@Nullable final ViewPager viewPager) {
  getMenu().clear();
  if (viewPager != null) {
  PagerAdapter pagerAdapter = viewPager.getAdapter();
  @@ -47,6 +49,13 @@ public class TabNavigationView extends BottomNavigationView implements TabView {
  getMenu().add(Menu.NONE, Menu.NONE, i, pagerAdapter.getPageTitle(i));
  }
  }
  + setOnNavigationItemSelectedListener(new OnNavigationItemSelectedListener() {
  + @Override
  + public boolean onNavigationItemSelected(@NonNull MenuItem menuItem) {
  + viewPager.setCurrentItem(menuItem.getOrder(), false);
  + return false;
  + }
  + });
  }
  }
  