nativescript-community / nativescript-community/ui-pager
Static pagerItems lose binding on ios low memory warning
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 21
- Forks
- 14
- PR merge metrics
- No merged PRs in 30d
Description
I have a simple pager on my app and everytime I hit "Simulate Memory Warning" the layout brakes, the labels lose their binding and the text disappear.
I've made this simple example that if I swipe and hit ""Simulate Memory Warning"" on some pages the label will disappear.
I think this issue only happens with static pager items, if I used items="something" this would work.
I also a another carousel plugin and it works well.
`<pager:Pager row="1" col="0" id="pager" loadMoreCount="0" selectedIndexChange="onSelectedPageChanged" showIndicator="false" disableSwipe="false" cache="false" height="100%">
<pager:PagerItem>
<Label text="Test1" textWrap="true" />
</pager:PagerItem>
<pager:PagerItem>
<Label text="Test2" textWrap="true" />
</pager:PagerItem>
<pager:PagerItem>
<Label text="Test3" textWrap="true" />
</pager:PagerItem>
</pager:Pager>`
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the static PagerItem markup in the issue and reproduce the failure on iOS using Simulate Memory Warning after swiping between pages. Compare static items with the working items="something" case, and verify that all labels retain their text and bindings after the warning. No source file or test is named in the report.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, typescript
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100