Fix ScrollView onScroll event only being called once.#452
Conversation
…Scroll should work now
|
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 cla@fb.com. Thanks! |
|
@nicklockwood I think you wrote the TODO, is that right? |
|
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
|
We don't want to send the events by default, and we want the client to think about what frequency they need the events. If the parent specifies onScroll and not the frequency, perhaps we should redbox?
|
|
The only real bug was just that it was a double when it should have been a NSUInteger. Since it was a double it got a very very high number when set. Like 4 billion or something. Now it gets the real value. We can keep the check in the if statement such that the client needs to specify another value than 0. |
There was a problem hiding this comment.
nit: this indentation was right...
|
I tested it and it's working as expected, but @sahrens I tried adding an invariant instead of the current warning, and during testing it on UIExplorer I just noticed that an invariant during a NavigatorIOS push crashes the objC... Any idea about that? Should we add the invariant anyways? |
|
If there is already a warning we can leave it.
|
|
I submitted a fix for this today that changes the property type to NSTimeInterval and renames the property to scrollEventThrottle, which seems more logical. That also fixes the issue with the default value being set incorrectly. |
|
This should be fixed in master - please open an issue if still see the bug. |
Summary: This adds some improvements to the new ```YGConfig```, it tackles #452 and moves the scalefactor into the config. Closes react/yoga#457 Differential Revision: D4675088 Pulled By: emilsjolander fbshipit-source-id: 99b2c734d6c5139fe1dc8bdeb014bb038f0e337d
…h latest Android toolchain (react#452) * Switching the build and publish pipeline to Ubuntu-18.04 machines as they tends to have newer build pipelines. * Using node v12.x
No description provided.