-
Notifications
You must be signed in to change notification settings - Fork 25k
first row becomes sticky if renderHeader return empty array #9963
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
Conversation
|
By analyzing the blame information on this pull request, we identified @nathanajah and @mkonicek to be potential reviewers. |
|
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at [email protected]. Thanks! |
|
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
|
@vafada updated the pull request - view changes |
|
I don't think you are supposed to return an array from |
|
An error or warning would be nice. The problem is you can return an array from |
|
It's been a while since the last commit was reviewed and the labels show this pull request needs review. Based on the blame information for the files in this pull request we identified @nathanajah as a potential reviewer. Could you take a look please or cc someone with more context? |
|
@vafada sorry for the delay here. Is this still an issue on master? |
|
I think I agree with Janic - you are not supposed to return an array, so it's more of an error or warnable-offense that it kinda works. So the right thing to do is more like have a warning or just suck up the breaking change and disable that, and I wouldn't be surprised if we do that in our upcoming flowtype cleanup. So I think we should not go this direction, and I am going to close this pull request. Thanks for pointing this out and for making a good faith effort to improve the codebase here. |
There is a bug in ListView in iOS if the renderHeader returns an empty array.
The section header doesn't become sticky, instead the first row in the section becomes the sticky.
Here's the sample test app in React Native Playground: https://rnplay.org/apps/M-h9IQ
React Native version: 0.33