Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible to make the dynamic list working #340

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Possible to make the dynamic list working #340

wants to merge 2 commits into from

Conversation

hyochan
Copy link

@hyochan hyochan commented Dec 19, 2020

Followed by the issue, I've looked inside the code and the props coming in was copied to state variable and they are not updated correctly in my environment. When changing them to props, everything is working fine + the comment here.

Below is how I've made my code worked.

onSwiped={(index: number) => {
  if (items.length - index <= ITEM_CNT / 4) {
    loadNext(ITEM_CNT);
  }
}}

However, I'd like to make this possible using onSwipedAll just like how we are using FlatList.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants