nativescript-carousel icon indicating copy to clipboard operation
nativescript-carousel copied to clipboard

Carousel won't update dyanically

Open odedBartov opened this issue 3 years ago • 0 comments

When i give the carousel the item source in rhe creation of the component it works fine, but when i update the source dynamically it will show a blank page. Even if i jus wait a bit in ngOnInit() it will do this. for example:

ngOnInit(){
this.itemSource = ["first value"]

setTimeout(() => {
    this.itemSource = ["second value"]
    }, 1000)
}

In this case i will have "first value" for a second and then i will have a white page. What i am missing? Please help!!!

odedBartov avatar Feb 16 '22 19:02 odedBartov