triniwiz / nativescript-pager

Apache License 2.0
90 stars 48 forks source link

pre-loading pagerItems with webviews for ios #135

Open 7ammer opened 5 years ago

7ammer commented 5 years ago

Hello,

Is it possible to pre-loading pagerItems with webviews for ios?

The gif shows 3 PagerItem's with a webView in each one. When scrolling to a new PagerItem the webView takes a little time to load before it becomes visible. This causes a flicker between pageItems. However, when scrolling back the previously viewed PagerItem's are already in memory (or maybe drawn on the screen?) so there is no flicker.

If would be great if I could control when to load-up a pageItem. Or perhaps Some automatic pageItem loading could be done behind the scenes to automatically load up the next item.

It's worth mentioning that the webview flicker is only appearing in IOS. Android seems to be fine.

Thank you for your time!

gfdsgdfs

VERSIONS: CLI: 5.4.2 tns-core-modules: 5.4.3 tns-ios: 5.4.2 tns-android: 5.4.0 nativescript-vue: ^2.0.0, nativescript-pager: ^9.5.4,

triniwiz commented 4 years ago

Can you share the code used here 😄