New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

nativescript-bottombar

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nativescript-bottombar - npm Package Compare versions

Comparing version 3.0.1 to 3.0.2

7

index.d.ts

@@ -65,9 +65,2 @@ import { View } from "tns-core-modules/ui/core/view";

}
export declare class BottomBarDelegate extends NSObject {
static ObjCProtocols: any[];
private _owner;
static initWithOwner(owner: WeakRef<BottomBar>): BottomBarDelegate;
tabSelected(index: number): void;
}
export declare class BottomBar extends BottomBarBase {

@@ -74,0 +67,0 @@ private _delegate;

2

package.json
{
"name": "nativescript-bottombar",
"version": "3.0.1",
"version": "3.0.2",
"description": "NativeScript plugin for AHBottomNavigation.",

@@ -5,0 +5,0 @@ "main": "bottombar",

@@ -83,2 +83,5 @@ "use strict";

};
BottomBar.prototype[common_1.uncoloredBackgroundColorProperty.setNative] = function (uncoloredBackgroundColor) {
this.nativeView.setDefaultBackgroundColor(new color_1.Color(uncoloredBackgroundColor).ios);
};
BottomBar.prototype.changeItemTitle = function (index, title) {

@@ -112,11 +115,24 @@ var item = this.items[index];

items.forEach(function (item, idx, aar) {
_this.items[idx] = new bottombar_item_1.BottomBarItem(item.index, item.title, item.icon, item.color, item.notification, new WeakRef(_this));
console.log('before testing if it has notification');
var notif = item.notification;
if (!notif) {
console.log('no notification');
console.dir(item);
notif = new common_1.Notification("white", "red", "");
}
console.log("notification implemented");
_this.items[idx] = new bottombar_item_1.BottomBarItem(item.index, item.title, item.icon, item.color, notif, new WeakRef(_this));
console.log("BottomBarItem created");
var icon1 = new BitmapDrawable(image_source_1.fromResource(item.icon).android);
console.log('icon created');
var item1 = new AHBottomNavigationItem(item.title, icon1, new color_1.Color(item.color).android);
console.log('AHBottomNavigationItem created');
_this.nativeView.addItem(item1);
console.log('item added');
var newNotification = new AHNotification.Builder()
.setText(item.notification.value)
.setBackgroundColor(new color_1.Color(item.notification.backgroundColor).android)
.setTextColor(new color_1.Color(item.notification.textColor).android)
.setText(notif.value)
.setBackgroundColor(new color_1.Color(notif.backgroundColor).android)
.setTextColor(new color_1.Color(notif.textColor).android)
.build();
console.log('notification created');
_this.nativeView.setNotification(newNotification, idx);

@@ -123,0 +139,0 @@ });

@@ -23,2 +23,3 @@ import { View } from "tns-core-modules/ui/core/view";

inactiveColor: string;
uncoloredBackgroundColor: string;
colored: boolean;

@@ -31,2 +32,3 @@ }

export declare const inactiveColorProperty: Property<BottomBarBase, string>;
export declare const uncoloredBackgroundColorProperty: Property<BottomBarBase, string>;
export declare const coloredProperty: Property<BottomBarBase, boolean>;

@@ -61,2 +61,6 @@ "use strict";

exports.inactiveColorProperty.register(BottomBarBase);
exports.uncoloredBackgroundColorProperty = new properties_1.Property({
name: "uncoloredBackgroundColor"
});
exports.uncoloredBackgroundColorProperty.register(BottomBarBase);
exports.coloredProperty = new properties_1.Property({

@@ -63,0 +67,0 @@ name: "colored",

@@ -39,4 +39,4 @@ "use strict";

_this.nativeView.backgroundColor = new color_1.Color('black').ios;
_this.nativeView.backgroundBlurEnabled = true;
_this.nativeView.keyLine.isHidden = false;
_this.nativeView.backgroundBlurEnabled = false;
_this.nativeView.keyLine.isHidden = true;
return _this;

@@ -102,2 +102,5 @@ }

};
BottomBar.prototype[common_1.uncoloredBackgroundColorProperty.setNative] = function (uncoloredBackgroundColor) {
this.nativeView.uncoloredBackgroundColor = new color_1.Color(uncoloredBackgroundColor).ios;
};
BottomBar.prototype[common_1.coloredProperty.setNative] = function (colored) {

@@ -104,0 +107,0 @@ this.nativeView.colored = colored;

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