Search in sources :

Example 1 with BottomTabsLayout

use of com.reactnativenavigation.views.bottomtabs.BottomTabsLayout in project react-native-navigation by wix.

the class BottomTabsController method createView.

@NonNull
@Override
public BottomTabsLayout createView() {
    BottomTabsLayout root = new BottomTabsLayout(getActivity());
    this.bottomTabsContainer = createBottomTabsContainer();
    this.bottomTabs = bottomTabsContainer.getBottomTabs();
    Options resolveCurrentOptions = resolveCurrentOptions();
    tabsAttacher.init(root, resolveCurrentOptions);
    presenter.bindView(bottomTabsContainer, this);
    tabPresenter.bindView(bottomTabs);
    bottomTabs.setOnTabSelectedListener(this);
    root.addBottomTabsContainer(bottomTabsContainer);
    bottomTabs.addItems(createTabs());
    setInitialTab(resolveCurrentOptions);
    tabsAttacher.attach();
    return root;
}
Also used : BottomTabOptions(com.reactnativenavigation.options.BottomTabOptions) Options(com.reactnativenavigation.options.Options) BottomTabsLayout(com.reactnativenavigation.views.bottomtabs.BottomTabsLayout) NonNull(androidx.annotation.NonNull)

Aggregations

NonNull (androidx.annotation.NonNull)1 BottomTabOptions (com.reactnativenavigation.options.BottomTabOptions)1 Options (com.reactnativenavigation.options.Options)1 BottomTabsLayout (com.reactnativenavigation.views.bottomtabs.BottomTabsLayout)1