nativescript-carousel
nativescript-carousel copied to clipboard
Carousel won't update dyanically
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!!!