use of com.reactnativenavigation.viewcontrollers.bottomtabs.attacher.BottomTabsAttacher in project react-native-navigation by wix.
the class BottomTabsAttacherTest method beforeEach.
@Override
public void beforeEach() {
mode = Mockito.mock(AttachMode.class);
List<ViewController<?>> tabs = Arrays.asList(mock(ViewController.class), mock(ViewController.class));
uut = new BottomTabsAttacher(tabs, Mockito.mock(BottomTabsPresenter.class), defaultOptions);
uut.attachStrategy = mode;
}
use of com.reactnativenavigation.viewcontrollers.bottomtabs.attacher.BottomTabsAttacher in project react-native-navigation by wix.
the class LayoutFactory method createBottomTabs.
private ViewController<?> createBottomTabs(LayoutNode node) {
List<ViewController<?>> tabs = map(node.children, this::create);
BottomTabsPresenter bottomTabsPresenter = new BottomTabsPresenter(tabs, defaultOptions, new BottomTabsAnimator());
return new BottomTabsController(activity, tabs, childRegistry, eventEmitter, new ImageLoader(), node.id, parseOptions(node.getOptions()), new Presenter(activity, defaultOptions), new BottomTabsAttacher(tabs, bottomTabsPresenter, defaultOptions), bottomTabsPresenter, new BottomTabPresenter(activity, tabs, new ImageLoader(), new TypefaceLoader(activity), defaultOptions));
}
Aggregations