Closed timomeh closed 7 years ago
I just noticed, maybe measure
shouldn't happen onScroll
. With <TriggerView>
mounted, scrolling is really laggy, because onScroll fires like a bajillion times a second, which causes serious frame drops.
Yeah, I noticed the frame drop. Il will try to improve that during the week.
Thanks for your pull request. I will test and merge that tomorrow.
view.measure
does only work on Android, if view hascollapsable: false
. See https://github.com/facebook/react-native/issues/3282#issuecomment-253992505Currently possible with setting
collapsable={false}
on<TriggerView>
ifself, since the view-props get passed through. But should be in the Component itself.