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

Measure container onLayout #73

Merged
merged 1 commit into from
Jul 27, 2019

Conversation

Mortenjoe
Copy link
Contributor

Related to #70 and maybe also #58. Container is sometimes measured before component is rendered (due to a too short setTimeout) and getting the offset wrong. I guess it should not depend on a setTimeout but rather onLayout when the component is fully rendered.

@rgoldiez
Copy link
Contributor

@computerjazz any reason not to merge this? It's the proper way to measure - using onLayout and not a timeout, which is going to cause race condition issues.

@computerjazz computerjazz merged commit 117e082 into computerjazz:master Jul 27, 2019
@ntrpnr
Copy link

ntrpnr commented Aug 14, 2019

Any ETA for this merge to be released on npm?

@computerjazz
Copy link
Owner

published 1.1.9

btw, I've just rewritten this package using reanimated + react-native-gesture-handler. It should be way more performant, especially on android -- any interest in helping test it out?

https://github.com/computerjazz/react-native-draggable-flatlist/pull/81/files

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.

4 participants