Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# NativeScript Slides for iOS and Android
###_The plugin formally known as nativescript-intro-slides_
[![Nativescript Slides. Click to Play](https://img.youtube.com/vi/1AatGtPA6J8/0.jpg)](https://www.youtube.com/embed/1AatGtPA6J8)
###Intro slides example:
[![Nativescript Slides. Click to Play](https://img.youtube.com/vi/kGby8qtSDjM/0.jpg)](https://www.youtube.com/embed/kGby8qtSDjM)

###Intro slides example:
[![Nativescript Slides. Click to Play](https://img.youtube.com/vi/kGby8qtSDjM/0.jpg)](https://www.youtube.com/embed/kGby8qtSDjM)


##Example Usage:
###XML
Expand Down
13 changes: 9 additions & 4 deletions nativescript-slides.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ import * as AnimationModule from 'ui/animation';
import * as gestures from 'ui/gestures';
import {AnimationCurve} from 'ui/enums';

const LayoutParams = android.view.WindowManager.LayoutParams;
let LayoutParams: any;
if (app.android) {
LayoutParams = <any>android.view.WindowManager.LayoutParams;
} else {
LayoutParams = {};
}

export class Slide extends StackLayout { }

Expand Down Expand Up @@ -152,9 +157,9 @@ export class SlideContainer extends AbsoluteLayout {
private carousel(isenabled: boolean, time: number) {
if (isenabled) {
this.timer_reference = setInterval(() => {
if(typeof this.currentPanel.right !== "undefined") {
if (typeof this.currentPanel.right !== "undefined") {
this.nextSlide();
}else {
} else {
clearTimeout(this.timer_reference);
}
}, time);
Expand Down Expand Up @@ -200,7 +205,7 @@ export class SlideContainer extends AbsoluteLayout {
window.clearFlags(LayoutParams.FLAG_TRANSLUCENT_STATUS);
}
if (this._androidTranslucentNavBar === true) {
window.clearFlags(LayoutParams.FLAG_TRANSLUCENT_NAVIGATION);
(<any>window).clearFlags(LayoutParams.FLAG_TRANSLUCENT_NAVIGATION);
}
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nativescript-slides",
"version": "1.1.0",
"version": "1.1.1",
"description": "NativeScript Slides plugin.",
"main": "nativescript-slides.js",
"nativescript": {
Expand Down