Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nativescript-bottom-navigation

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nativescript-bottom-navigation - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

8

lib/android/bottom-navigation-bar.js

@@ -23,8 +23,10 @@ "use strict";

var nativeView = new BottomNavigationView(this._context);
var owner = new WeakRef(this);
nativeView.setOnNavigationItemSelectedListener(on_tab_selected_listener_1.OnTabSelectedListener.initWithOwner(owner));
nativeView.setOnNavigationItemReselectedListener(on_tab_reselected_listener_1.OnTabReselectedListener.initWithOwner(owner));
var OnTabReselectedListener = on_tab_reselected_listener_1.getOnTabReselectedListener();
nativeView.setOnNavigationItemReselectedListener(new OnTabReselectedListener(this));
var OnTabSelectedListener = on_tab_selected_listener_1.getOnTabSelectedlistener();
nativeView.setOnNavigationItemSelectedListener(new OnTabSelectedListener(this));
return nativeView;
};
BottomNavigationBar.prototype.initNativeView = function () {
_super.prototype.initNativeView.call(this);
this.createTabs();

@@ -31,0 +33,0 @@ this.nativeView.setLabelVisibilityMode(this.titleVisibility);

import { BottomNavigationBar } from '../bottom-navigation-bar';
declare type OnNavigationItemReselectedListenerType = com.google.android.material.bottomnavigation.BottomNavigationView.OnNavigationItemReselectedListener;
export declare class OnTabReselectedListener extends java.lang.Object implements OnNavigationItemReselectedListenerType {
private _owner;
static initWithOwner(owner: WeakRef<BottomNavigationBar>): OnTabReselectedListener;
onNavigationItemReselected(item: globalAndroid.view.MenuItem): void;
declare type OnNavigationItemReselectedListener = com.google.android.material.bottomnavigation.BottomNavigationView.OnNavigationItemReselectedListener;
interface OnTabReselectedListener {
new (owner: BottomNavigationBar): OnNavigationItemReselectedListener;
}
declare let OnTabReselectedListener: OnTabReselectedListener;
export declare const getOnTabReselectedListener: () => OnTabReselectedListener;
export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var BottomNavigationView = com.google.android.material.bottomnavigation.BottomNavigationView;
var OnTabReselectedListener = (function (_super) {
__extends(OnTabReselectedListener, _super);
function OnTabReselectedListener() {
return _super !== null && _super.apply(this, arguments) || this;
var bottom_navigation_bar_1 = require("../bottom-navigation-bar");
var OnTabReselectedListener;
exports.getOnTabReselectedListener = function () {
if (OnTabReselectedListener) {
return OnTabReselectedListener;
}
OnTabReselectedListener_1 = OnTabReselectedListener;
OnTabReselectedListener.initWithOwner = function (owner) {
var listener = new OnTabReselectedListener_1();
listener._owner = owner.get();
return listener;
};
OnTabReselectedListener.prototype.onNavigationItemReselected = function (item) {
this._owner._emitTabReselected(item.getItemId());
};
var OnTabReselectedListener_1;
OnTabReselectedListener = OnTabReselectedListener_1 = __decorate([
Interfaces([BottomNavigationView.OnNavigationItemReselectedListener])
], 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;
}(java.lang.Object));
exports.OnTabReselectedListener = OnTabReselectedListener;
};
//# sourceMappingURL=on-tab-reselected.listener.js.map

@@ -1,1 +0,1 @@

[{"__symbolic":"module","version":4,"metadata":{"OnTabReselectedListener":{"__symbolic":"class","extends":{"__symbolic":"select","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"java"},"member":"lang"},"member":"Object"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Interfaces"},"arguments":[{"__symbolic":"error","message":"Destructuring not supported","line":3,"character":8}]}],"members":{"onNavigationItemReselected":[{"__symbolic":"method"}]}}}}]
[{"__symbolic":"module","version":4,"metadata":{"getOnTabReselectedListener":{"__symbolic":"error","message":"Lambda not supported","line":11,"character":42}}}]
import { BottomNavigationBar } from '../bottom-navigation-bar';
declare type OnNavigationItemSelectedListenerType = com.google.android.material.bottomnavigation.BottomNavigationView.OnNavigationItemSelectedListener;
export declare class OnTabSelectedListener extends java.lang.Object implements OnNavigationItemSelectedListenerType {
private _owner;
static initWithOwner(owner: WeakRef<BottomNavigationBar>): OnTabSelectedListener;
onNavigationItemSelected(item: android.view.MenuItem): boolean;
declare type OnNavigationItemSelectedListener = com.google.android.material.bottomnavigation.BottomNavigationView.OnNavigationItemSelectedListener;
interface OnTabSelectedlistener {
new (owner: BottomNavigationBar): OnNavigationItemSelectedListener;
}
declare let OnTabSelectedlistener: OnTabSelectedlistener;
export declare const getOnTabSelectedlistener: () => OnTabSelectedlistener;
export {};
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var BottomNavigationView = com.google.android.material.bottomnavigation.BottomNavigationView;
var OnTabSelectedListener = (function (_super) {
__extends(OnTabSelectedListener, _super);
function OnTabSelectedListener() {
return _super !== null && _super.apply(this, arguments) || this;
var bottom_navigation_bar_1 = require("../bottom-navigation-bar");
var OnTabSelectedlistener;
exports.getOnTabSelectedlistener = function () {
if (OnTabSelectedlistener) {
return OnTabSelectedlistener;
}
OnTabSelectedListener_1 = OnTabSelectedListener;
OnTabSelectedListener.initWithOwner = function (owner) {
var listener = new OnTabSelectedListener_1();
listener._owner = owner.get();
return listener;
};
OnTabSelectedListener.prototype.onNavigationItemSelected = function (item) {
var bottomNavigationTab = this._owner.items[item.getItemId()];
if (bottomNavigationTab.isSelectable) {
this._owner._emitTabSelected(item.getItemId());
var OnTabSelectedlistenerImpl = (function (_super) {
__extends(OnTabSelectedlistenerImpl, _super);
function OnTabSelectedlistenerImpl(owner) {
var _this = _super.call(this) || this;
_this.owner = owner;
return global.__native(_this);
}
else {
this._owner._emitTabPressed(item.getItemId());
}
return bottomNavigationTab.isSelectable;
};
var OnTabSelectedListener_1;
OnTabSelectedListener = OnTabSelectedListener_1 = __decorate([
Interfaces([BottomNavigationView.OnNavigationItemSelectedListener])
], OnTabSelectedListener);
return OnTabSelectedListener;
}(java.lang.Object));
exports.OnTabSelectedListener = OnTabSelectedListener;
OnTabSelectedlistenerImpl.prototype.onNavigationItemSelected = function (menuItem) {
var bottomNavigationTab = this.owner.items[menuItem.getItemId()];
if (bottomNavigationTab.isSelectable) {
this.owner._emitTabSelected(menuItem.getItemId());
}
else {
this.owner._emitTabPressed(menuItem.getItemId());
}
return bottomNavigationTab.isSelectable;
};
OnTabSelectedlistenerImpl = __decorate([
Interfaces([
com.google.android.material.bottomnavigation.BottomNavigationView
.OnNavigationItemSelectedListener,
]),
__metadata("design:paramtypes", [bottom_navigation_bar_1.BottomNavigationBar])
], OnTabSelectedlistenerImpl);
return OnTabSelectedlistenerImpl;
}(java.lang.Object));
OnTabSelectedlistener = OnTabSelectedlistenerImpl;
return OnTabSelectedlistener;
};
//# sourceMappingURL=on-tab-selected.listener.js.map

@@ -1,1 +0,1 @@

[{"__symbolic":"module","version":4,"metadata":{"OnTabSelectedListener":{"__symbolic":"class","extends":{"__symbolic":"select","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"java"},"member":"lang"},"member":"Object"},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","name":"Interfaces"},"arguments":[{"__symbolic":"error","message":"Destructuring not supported","line":3,"character":8}]}],"members":{"onNavigationItemSelected":[{"__symbolic":"method"}]}}}}]
[{"__symbolic":"module","version":4,"metadata":{"getOnTabSelectedlistener":{"__symbolic":"error","message":"Lambda not supported","line":11,"character":40}}}]
{
"name": "nativescript-bottom-navigation",
"version": "2.0.1",
"version": "2.0.2",
"description": "NativeScript plugin to add a bottom navigation component for Android & iOS",

@@ -5,0 +5,0 @@ "main": "bottom-navigation-bar",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc