Add a check for scrollEnabled to VirtualizedList error#34560
Add a check for scrollEnabled to VirtualizedList error#34560annepham25 wants to merge 4 commits into
Conversation
|
Hi @annepham25! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks! |
|
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
|
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
|
Could you help me understand why the error condition doesn't apply when |
|
VirtualizedList is also split between two components at the moment for staging, so any changes to it should also be made to |
|
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
|
@NickGerleman |
Base commit: 00458c9 |
Base commit: 37d0a25 |
|
@NickGerleman has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
This pull request was successfully merged by Anne Pham in 62f83a9. When will my fix make it into a release? | Upcoming Releases |
|
I realized that the change was removed from |
Summary
Nested
VirtualizedListis now an error, instead of a warning. Issues here and here outline the concern.Changelog
[General] [Added] - Added a check to if
scrollEnabledis not false, if so then fire theVirtualizedListerrorTest Plan
Passes all provided automatic tests. In a personal app, there is a situation of nested ScrollViews that had triggered the error. After defining
scrollEnabled={false}and adding the check, the error no longer appears.