JoshDSommer / nativescript-slides

A NativeScript plugin that is for Intro Tutorials, Image Carousels or any other slide functionality
Other
70 stars 32 forks source link

Bug when go back to the page with slides added dynamically #75

Open terreb opened 7 years ago

terreb commented 7 years ago

A bug occurs when we go back to the page with slides added dynamically on both iOS and Android.

In order to reproduce the issue please do the following:

export function openPage() {
    var navigationEntry = {
        moduleName: "./views/main-page",
        animated: false
    };

    frameModule.topmost().navigate(navigationEntry);
}
export function goBack() {
    frameModule.topmost().goBack()
}
<Button text="Go Back" tap="goBack" row="1" />
<Button text="open sub page" tap="openPage" row="1" />

Please let me know if you need any further info on that.

JoshDSommer commented 7 years ago

@terreb I just want to say how much i appreciate the detailed info on how to recreate this. working on a fix.

cheers.

terreb commented 7 years ago

No problem! This is so useful plugin, that we awfully need it working:)

josempbrites commented 7 years ago

Great plugin! a solution for this issue would be really great. @TheOriginalJosh

markosole commented 6 years ago

Hi guys, I am looking how to add slides dynamically with pure javacsript. I have tried this but it does not show slides at all:

    <Slides:SlideContainer id="slideContainer" pageIndicators="true" items="{{ sviArtikli }}">
        <Slides:Slide class="slide-1">
            <Label text="{{ opis_artikla }}"  />
        </Slides:Slide>

    </Slides:SlideContainer>

I have managed to make progress but example below makes only one slide from Object.

 <Repeater items="{{ sviArtikli }}">
    <Repeater.itemTemplate>
    <Slides:SlideContainer id="slideContainer" pageIndicators="true" items="{{ opis_artikla }}">

            <Slides:Slide class="slide-1" >
                <Label text="{{ opis_artikla }}"  />
                <Label text="moj tekst 1"  /> 
            </Slides:Slide>             

    </Slides:SlideContainer>
    </Repeater.itemTemplate>
    </Repeater> 

Can someone point me in right direction please. Thanks!