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

following #102, fix the Android part #105

Merged

Conversation

nihgwu
Copy link
Collaborator

@nihgwu nihgwu commented Sep 14, 2017

I fix the item position issue described in #101 in #102, but I only test it on iOS, I'm so sorry for my carelessness.

I spend some time to investigate the remain issue on Android, I found that measure always return undefined instead of a layout object as it does on iOS, and I found this facebook/react-native#12966, but adding collapsable={false} is not enough, it works well on new RN versions, but in the Sortable example in this repo, all the returned layout fields are 0, so I have to add a setTimeout(0) to fix it, although I don't like this idea, but sometimes we just need it.

@nihgwu nihgwu merged commit 36893ac into deanmcpherson:master Sep 14, 2017
@nihgwu nihgwu deleted the neo/fix-position-regression-android branch September 14, 2017 15:05
eduardojunio added a commit to eduardojunio/react-native-sortable-listview that referenced this pull request Sep 14, 2017
@chetstone
Copy link
Collaborator

Great, thanks @nihgwu

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