react-native-navigation
Version:
React Native Navigation - truly native navigation for iOS and Android
64 lines (63 loc) • 2.53 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.NativeCommandsSender = void 0;
const tslib_1 = require("tslib");
const NativeRNNTurboModule_1 = tslib_1.__importDefault(require("./NativeRNNTurboModule"));
class NativeCommandsSender {
nativeCommandsModule;
constructor() {
this.nativeCommandsModule = NativeRNNTurboModule_1.default;
}
setRoot(commandId, layout) {
return this.nativeCommandsModule.setRoot(commandId, layout);
}
setDefaultOptions(options) {
return this.nativeCommandsModule.setDefaultOptions(options);
}
mergeOptions(componentId, options) {
return this.nativeCommandsModule.mergeOptions(componentId, options);
}
push(commandId, onComponentId, layout) {
return this.nativeCommandsModule.push(commandId, onComponentId, layout);
}
pop(commandId, componentId, options) {
return this.nativeCommandsModule.pop(commandId, componentId, options);
}
popTo(commandId, componentId, options) {
return this.nativeCommandsModule.popTo(commandId, componentId, options);
}
popToRoot(commandId, componentId, options) {
return this.nativeCommandsModule.popToRoot(commandId, componentId, options);
}
setStackRoot(commandId, onComponentId, layout) {
return this.nativeCommandsModule.setStackRoot(commandId, onComponentId, layout);
}
showModal(commandId, layout) {
return this.nativeCommandsModule.showModal(commandId, layout);
}
dismissModal(commandId, componentId, options) {
return this.nativeCommandsModule.dismissModal(commandId, componentId, options);
}
dismissAllModals(commandId, options) {
return this.nativeCommandsModule.dismissAllModals(commandId, options);
}
showOverlay(commandId, layout) {
return this.nativeCommandsModule.showOverlay(commandId, layout);
}
dismissOverlay(commandId, componentId) {
return this.nativeCommandsModule.dismissOverlay(commandId, componentId);
}
dismissAllOverlays(commandId) {
return this.nativeCommandsModule.dismissAllOverlays(commandId);
}
getLaunchArgs(commandId) {
return this.nativeCommandsModule.getLaunchArgs(commandId);
}
getNavigationConstants() {
return Promise.resolve(this.nativeCommandsModule.getConstants());
}
getNavigationConstantsSync() {
return this.nativeCommandsModule.getConstants();
}
}
exports.NativeCommandsSender = NativeCommandsSender;