use of com.reactnativenavigation.screens.ScreenStack in project react-native-navigation by wix.
the class BottomTabsLayout method hideCurrentStack.
private void hideCurrentStack() {
ScreenStack currentScreenStack = getCurrentScreenStack();
currentScreenStack.hide(NavigationType.BottomTabSelected);
}
use of com.reactnativenavigation.screens.ScreenStack in project react-native-navigation by wix.
the class BottomTabsLayout method createAndAddScreens.
private void createAndAddScreens(int position) {
ScreenParams screenParams = params.tabParams.get(position);
ScreenStack newStack = new ScreenStack(getActivity(), getScreenStackParent(), screenParams.getNavigatorId(), this);
newStack.pushInitialScreen(screenParams, createScreenLayoutParams(screenParams));
for (ScreenParams screen : screenParams.screens) {
newStack.pushInitialScreen(screen, createScreenLayoutParams(screen));
}
screenStacks[position] = newStack;
}
use of com.reactnativenavigation.screens.ScreenStack in project react-native-navigation by wix.
the class BottomTabsLayout method pop.
@Override
public void pop(final ScreenParams params) {
performOnStack(params.getNavigatorId(), new Task<ScreenStack>() {
@Override
public void run(ScreenStack stack) {
stack.pop(params.animateScreenTransitions, params.timestamp, new ScreenStack.OnScreenPop() {
@Override
public void onScreenPopAnimationEnd() {
setBottomTabsStyleFromCurrentScreen();
EventBus.instance.post(new ScreenChangedEvent(getCurrentScreenStack().peek().getScreenParams()));
}
});
}
});
}
use of com.reactnativenavigation.screens.ScreenStack in project react-native-navigation by wix.
the class BottomTabsLayout method destroy.
@Override
public void destroy() {
snackbarAndFabContainer.destroy();
for (ScreenStack screenStack : screenStacks) {
screenStack.destroy();
}
if (sideMenu != null) {
sideMenu.destroy();
}
if (lightBox != null) {
lightBox.destroy();
lightBox = null;
}
slidingOverlaysQueue.destroy();
}
use of com.reactnativenavigation.screens.ScreenStack in project react-native-navigation by wix.
the class BottomTabsLayout method newStack.
@Override
public void newStack(final ScreenParams params) {
ScreenStack screenStack = getScreenStack(params.getNavigatorId());
screenStack.newStack(params, createScreenLayoutParams(params));
if (isCurrentStack(screenStack)) {
bottomTabs.setStyleFromScreen(params.styleParams);
EventBus.instance.post(new ScreenChangedEvent(params));
}
}
Aggregations