nativescript-bottom-navigation
Version:
NativeScript plugin to add a bottom navigation component for Android & iOS
31 lines • 1.37 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
var bottom_navigation_bar_1 = require("../bottom-navigation-bar");
var OnTabReselectedListener;
exports.getOnTabReselectedListener = function () {
if (OnTabReselectedListener) {
return OnTabReselectedListener;
}
var OnTabReselectedListenerImpl = (function (_super) {
__extends(OnTabReselectedListenerImpl, _super);
function OnTabReselectedListenerImpl(owner) {
var _this = _super.call(this) || this;
_this.owner = owner;
return global.__native(_this);
}
OnTabReselectedListenerImpl.prototype.onNavigationItemReselected = function (menuItem) {
this.owner._emitTabReselected(menuItem.getItemId());
};
OnTabReselectedListenerImpl = __decorate([
Interfaces([
com.google.android.material.bottomnavigation.BottomNavigationView
.OnNavigationItemReselectedListener,
]),
__metadata("design:paramtypes", [bottom_navigation_bar_1.BottomNavigationBar])
], OnTabReselectedListenerImpl);
return OnTabReselectedListenerImpl;
}(java.lang.Object));
OnTabReselectedListener = OnTabReselectedListenerImpl;
return OnTabReselectedListener;
};
//# sourceMappingURL=on-tab-reselected.listener.js.map
;