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 1.2.0 to 1.3.0

angular/nativescript-bottom-navigation.directives.d.ts

110

angular/nativescript-bottom-navigation.directives.js

@@ -108,40 +108,40 @@ "use strict";

};
__decorate([
core_1.Input(),
__metadata("design:type", String),
__metadata("design:paramtypes", [String])
], BottomNavigationDirective.prototype, "activeColor", null);
__decorate([
core_1.Input(),
__metadata("design:type", String),
__metadata("design:paramtypes", [String])
], BottomNavigationDirective.prototype, "inactiveColor", null);
__decorate([
core_1.Input(),
__metadata("design:type", String),
__metadata("design:paramtypes", [String])
], BottomNavigationDirective.prototype, "backgroundColor", null);
__decorate([
core_1.Input(),
__metadata("design:type", String),
__metadata("design:paramtypes", [String])
], BottomNavigationDirective.prototype, "keyLineColor", null);
__decorate([
core_1.Input(),
__metadata("design:type", Array),
__metadata("design:paramtypes", [Array])
], BottomNavigationDirective.prototype, "tabs", null);
__decorate([
core_1.Input(),
__metadata("design:type", Number),
__metadata("design:paramtypes", [Number])
], BottomNavigationDirective.prototype, "selectedTabIndex", null);
BottomNavigationDirective = __decorate([
core_1.Directive({
selector: "BottomNavigation"
}),
__metadata("design:paramtypes", [core_1.ElementRef])
], BottomNavigationDirective);
return BottomNavigationDirective;
}());
__decorate([
core_1.Input(),
__metadata("design:type", String),
__metadata("design:paramtypes", [String])
], BottomNavigationDirective.prototype, "activeColor", null);
__decorate([
core_1.Input(),
__metadata("design:type", String),
__metadata("design:paramtypes", [String])
], BottomNavigationDirective.prototype, "inactiveColor", null);
__decorate([
core_1.Input(),
__metadata("design:type", String),
__metadata("design:paramtypes", [String])
], BottomNavigationDirective.prototype, "backgroundColor", null);
__decorate([
core_1.Input(),
__metadata("design:type", String),
__metadata("design:paramtypes", [String])
], BottomNavigationDirective.prototype, "keyLineColor", null);
__decorate([
core_1.Input(),
__metadata("design:type", Array),
__metadata("design:paramtypes", [Array])
], BottomNavigationDirective.prototype, "tabs", null);
__decorate([
core_1.Input(),
__metadata("design:type", Number),
__metadata("design:paramtypes", [Number])
], BottomNavigationDirective.prototype, "selectedTabIndex", null);
BottomNavigationDirective = __decorate([
core_1.Directive({
selector: "BottomNavigation"
}),
__metadata("design:paramtypes", [core_1.ElementRef])
], BottomNavigationDirective);
exports.BottomNavigationDirective = BottomNavigationDirective;

@@ -181,25 +181,25 @@ var BottomNavigationTabDirective = (function () {

});
__decorate([
core_1.Input(),
__metadata("design:type", String),
__metadata("design:paramtypes", [String])
], BottomNavigationTabDirective.prototype, "title", null);
__decorate([
core_1.Input(),
__metadata("design:type", String),
__metadata("design:paramtypes", [String])
], BottomNavigationTabDirective.prototype, "icon", null);
__decorate([
core_1.Input(),
__metadata("design:type", Boolean)
], BottomNavigationTabDirective.prototype, "_selectable", void 0);
BottomNavigationTabDirective = __decorate([
core_1.Directive({
selector: "BottomNavigationTab"
})
], BottomNavigationTabDirective);
return BottomNavigationTabDirective;
}());
__decorate([
core_1.Input(),
__metadata("design:type", String),
__metadata("design:paramtypes", [String])
], BottomNavigationTabDirective.prototype, "title", null);
__decorate([
core_1.Input(),
__metadata("design:type", String),
__metadata("design:paramtypes", [String])
], BottomNavigationTabDirective.prototype, "icon", null);
__decorate([
core_1.Input(),
__metadata("design:type", Boolean)
], BottomNavigationTabDirective.prototype, "_selectable", void 0);
BottomNavigationTabDirective = __decorate([
core_1.Directive({
selector: "BottomNavigationTab"
})
], BottomNavigationTabDirective);
exports.BottomNavigationTabDirective = BottomNavigationTabDirective;
exports.DIRECTIVES = [BottomNavigationDirective, BottomNavigationTabDirective];
//# sourceMappingURL=nativescript-bottom-navigation.directives.js.map

@@ -9,10 +9,10 @@ "use strict";

}
NativescriptBottomNavigationModule = __decorate([
core_1.NgModule({
declarations: [nativescript_bottom_navigation_directives_1.DIRECTIVES],
exports: [nativescript_bottom_navigation_directives_1.DIRECTIVES],
})
], NativescriptBottomNavigationModule);
return NativescriptBottomNavigationModule;
}());
NativescriptBottomNavigationModule = __decorate([
core_1.NgModule({
declarations: [nativescript_bottom_navigation_directives_1.DIRECTIVES],
exports: [nativescript_bottom_navigation_directives_1.DIRECTIVES],
})
], NativescriptBottomNavigationModule);
exports.NativescriptBottomNavigationModule = NativescriptBottomNavigationModule;

@@ -19,0 +19,0 @@ element_registry_1.registerElement("BottomNavigation", function () { return require("../").BottomNavigation; });

@@ -22,5 +22,5 @@ "use strict";

};
BottomNavigationDelegate.ObjCProtocols = [MiniTabBarDelegate];
return BottomNavigationDelegate;
}(NSObject));
BottomNavigationDelegate.ObjCProtocols = [MiniTabBarDelegate];
exports.BottomNavigationDelegate = BottomNavigationDelegate;

@@ -42,3 +42,6 @@ var BottomNavigation = (function (_super) {

this.nativeView = new MiniTabBar({ items: null });
var bottomSafeArea = application_1.ios.window.safeAreaInsets.bottom;
var bottomSafeArea = 0;
if (application_1.ios.window.safeAreaInsets) {
bottomSafeArea = application_1.ios.window.safeAreaInsets.bottom;
}
var bottomBarHeight = 56 + bottomSafeArea;

@@ -45,0 +48,0 @@ this.nativeView.frame = CGRectMake(0, platform_1.screen.mainScreen.heightDIPs - bottomBarHeight, platform_1.screen.mainScreen.widthDIPs, bottomBarHeight);

@@ -20,3 +20,3 @@ import { EventData } from 'tns-core-modules/data/observable';

public backgroundColor: string;
public keyLineColor: string;

@@ -23,0 +23,0 @@

{
"name": "nativescript-bottom-navigation",
"version": "1.2.0",
"version": "1.3.0",
"description": "Nativescript plugin to add a bottom navigation component for Android & iOS",

@@ -9,4 +9,4 @@ "main": "bottom-navigation",

"platforms": {
"android": "3.0.1",
"ios": "3.0.0"
"android": "4.0.0",
"ios": "4.0.0"
}

@@ -16,9 +16,10 @@ },

"tsc": "tsc -skipLibCheck",
"ngc": "node --max-old-space-size=8192 ./node_modules/.bin/ngc",
"build": "npm i && tsc",
"postclone": "npm i && node scripts/postclone.js && cd ../demo && npm i && cd ../src && npm run plugin.link",
"test.android": "npm i && npm run tsc && npm run tslint && cd ../demo && tns build android && tns test android --justlaunch",
"test.angular.android": "npm i && npm run tsc && npm run tslint && cd ../demo-angular && tns build android && tns test android --justlaunch",
"test.ios": "npm i && npm run tsc && npm run tslint && cd ../demo && tns build ios && tns test ios --justlaunch",
"test.angular.ios": "npm i && npm run tsc && npm run tslint && cd ../demo-angular && tns build ios && tns test ios --justlaunch",
"tslint": "cd .. && tslint \"**/*.ts\" --config tslint.json --exclude \"**/node_modules/**\"",
"ci.tslint": "npm i && tslint '**/*.ts' --config '../tslint.json' --exclude '**/node_modules/**'",
"prepublishOnly": "npm run build",
"test.android": "npm i && npm run tsc && npm run ci.tslint && cd ../demo && tns build android && tns test android --justlaunch",
"test.angular.android": "npm i && npm run tsc && npm run ci.tslint && cd ../demo-angular && tns build android && tns test android --justlaunch",
"test.ios": "npm i && npm run tsc && npm run ci.tslint && cd ../demo && tns build ios && tns test ios --justlaunch",
"test.angular.ios": "npm i && npm run tsc && npm run ci.tslint && cd ../demo-angular && tns build ios && tns test ios --justlaunch",
"plugin.link": "npm link && cd ../demo && npm link nativescript-bottom-navigation && cd ../src",

@@ -33,7 +34,6 @@ "plugin.angular.link": "npm link && cd ../demo-angular && npm link nativescript-bottom-navigation && cd ../src",

"demo.angular.reset": "cd ../demo-angular && rimraf platforms",
"plugin.prepare": "npm run tsc && cd ../demo && tns plugin remove nativescript-bottom-navigation && tns plugin add ../src",
"plugin.angular.prepare": "npm run tsc && cd ../demo-angular && tns plugin remove nativescript-bottom-navigation && tns plugin add ../src",
"plugin.prepare": "npm run build && cd ../demo && tns plugin remove nativescript-bottom-navigation && tns plugin add ../src",
"plugin.angular.prepare": "npm run build && cd ../demo-angular && tns plugin remove nativescript-bottom-navigation && tns plugin add ../src",
"clean": "cd ../demo && rimraf hooks node_modules platforms && cd ../src && rimraf node_modules && npm run plugin.link",
"clean.angular": "cd ../demo-angular && rimraf hooks node_modules platforms && cd ../src && rimraf node_modules && npm run plugin.link",
"ci.tslint": "npm i && tslint '**/*.ts' --config '../tslint.json' --exclude '**/node_modules/**'"
"clean.angular": "cd ../demo-angular && rimraf hooks node_modules platforms && cd ../src && rimraf node_modules && npm run plugin.link"
},

@@ -48,3 +48,4 @@ "keywords": [

"Bytpher",
"Bottom Navigation"
"Bottom Navigation",
"Material Design"
],

@@ -62,22 +63,14 @@ "author": {

"readmeFilename": "README.md",
"peerDependencies": {
"tns-core-modules": "^3.0.0"
},
"devDependencies": {
"@angular/common": "^4.2.5",
"@angular/compiler": "^4.2.5",
"@angular/core": "^4.2.5",
"@angular/forms": "^4.2.5",
"@angular/http": "^4.2.5",
"@angular/platform-browser": "^4.2.5",
"@angular/router": "^4.2.5",
"nativescript-angular": "^4.2.0",
"prompt": "^1.0.0",
"rimraf": "^2.5.0",
"rxjs": "^5.4.3",
"tns-core-modules": "^3.1.0",
"tns-platform-declarations": "^3.1.0",
"tslint": "^5.0.0",
"typescript": "~2.3.0",
"zone.js": "^0.8.17"
"tns-core-modules": "^4.0.0",
"tns-platform-declarations": "^4.0.0",
"typescript": "~2.7.2",
"nativescript-angular": "^5.0.0",
"@angular/core": "~5.0.0",
"@angular/common": "~5.0.0",
"@angular/compiler": "~5.0.0",
"@angular/compiler-cli": "~5.0.0",
"rxjs": "5.4.2",
"zone.js": "~0.8.4",
"tslint": "~5.4.3"
},

@@ -84,0 +77,0 @@ "dependencies": {},

@@ -5,6 +5,6 @@ # Nativescript Bottom Navigation

[![npm](https://img.shields.io/npm/v/nativescript-bottom-navigation.svg)](https://www.npmjs.com/package/nativescript-bottom-navigation) [![npm](https://img.shields.io/npm/dt/nativescript-bottom-navigation.svg?label=npm%20downloads)](https://www.npmjs.com/package/nativescript-bottom-navigation)
[![npm](https://img.shields.io/npm/v/nativescript-bottom-navigation.svg)](https://www.npmjs.com/package/nativescript-bottom-navigation) [![npm](https://img.shields.io/npm/dt/nativescript-bottom-navigation.svg?label=npm%20downloads)](https://www.npmjs.com/package/nativescript-bottom-navigation) [![Build Status](https://travis-ci.org/henrychavez/nativescript-bottom-navigation.svg?branch=master)](https://travis-ci.org/henrychavez/nativescript-bottom-navigation)
![iOS](screenshots/screenshot-ios.png)
<img alt="iOS" src="screenshots/screenshot-ios.png" width="250">

@@ -185,3 +185,3 @@ ## Prerequisites / Requirements

import { Component, OnInit } from "@angular/core";
import { BottomNavigation, BottonNavigationTab, OnTabSelectedEventData } from 'nativescript-bottom-navigation';
import { BottomNavigation, BottomNavigationTab, OnTabSelectedEventData } from 'nativescript-bottom-navigation';

@@ -197,3 +197,3 @@ @Component(

public tabs: BottonNavigationTab[] = [
public tabs: BottomNavigationTab[] = [
new BottomNavigationTab('First', 'ic_home'),

@@ -200,0 +200,0 @@ new BottomNavigationTab('Second', 'ic_view_list'),

Sorry, the diff of this file is not supported yet

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