react-native-navigation
Version:
React Native Navigation - truly native navigation for iOS and Android
19 lines (18 loc) • 641 B
JavaScript
;
import { LayoutStore } from "../Stores/LayoutStore.js";
export const switchTabByIndex = (bottomTabs, index) => {
if (bottomTabs) {
LayoutStore.getVisibleLayout().componentDidDisappear();
LayoutStore.selectTabIndex(bottomTabs, index);
LayoutStore.getVisibleLayout().componentDidAppear();
}
};
export const openSideMenu = sideMenu => {
LayoutStore.openSideMenu(sideMenu);
LayoutStore.getVisibleLayout().componentDidAppear();
};
export const closeSideMenu = layout => {
LayoutStore.getVisibleLayout().componentDidDisappear();
LayoutStore.closeSideMenu(layout);
};
//# sourceMappingURL=layoutActions.js.map