use of com.reactnativenavigation.options.parsers.TypefaceLoader in project react-native-navigation by wix.
the class LayoutFactory method init.
public void init(Activity activity, EventEmitter eventEmitter, ChildControllersRegistry childRegistry, Map<String, ExternalComponentCreator> externalComponentCreators) {
this.activity = activity;
this.eventEmitter = eventEmitter;
this.childRegistry = childRegistry;
this.externalComponentCreators = externalComponentCreators;
typefaceManager = new TypefaceLoader(activity);
}
use of com.reactnativenavigation.options.parsers.TypefaceLoader 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