PeterStaev / nativescript-image-swipe

A NativeScript widget to easily :point_up_2: and :mag: through a list of images
Apache License 2.0
35 stars 21 forks source link

Failure to load first image #13

Closed zprice-invsqr closed 5 years ago

zprice-invsqr commented 7 years ago

When the initial value of pageNumber is set to 0, the first image fails to load (e.g. a blank/empty screen is shown). This was confirmed across two projects and is reproducible with the Angular example code by setting pageNumber to 0 instead of 3.

Edit: Sorry, I forgot to mention this was tested only in an iOS simulator.

jessebacon commented 7 years ago

Any movement on this @PeterStaev? I'd be happy to dig in and take a look if I got some direction on the best place to start.

PeterStaev commented 7 years ago

@jessebacon , I am a bit swamped with work on other projects, so sadly I haven't done any tracing on this. Sadly I cannot give you any directions since I do not know what/where is the problem. I have the plugin working in a non-angular app even with the first page, so it could be something with the angular code, not sure.

jessebacon commented 7 years ago

Thanks for a quick response @PeterStaev! Given that, I might try to check it's a zone issue with angular.

omaralsoudanii commented 7 years ago

Any fix for this ? I got it too.

OPADA-Eng commented 7 years ago

I fixed this by using ObservableArray and setting pageNumber="0".

VladimirAmiorkov commented 6 years ago

In my project I use ObservableArray and this issue persists.

PeterStaev commented 6 years ago

@VladimirAmiorkov , can you provide a peroducable example in the playground? I'm actively using this plugin in couple of apps and never had problems with it.

VladimirAmiorkov commented 6 years ago

Hi @PeterStaev ,

Yes I will try to provide a sample.

PeterStaev commented 5 years ago

No further response so closing this one for now. In case you still have problems, please provide more details.