fix: suspendRequestLayout not being reset to the right state

This causes unecessary `requestLayout`
This commit is contained in:
Martin Guillon
2021-08-10 09:30:42 +02:00
parent 2005bd5927
commit 46b4b6409f

View File

@ -1375,7 +1375,7 @@ export const initNativeView = profile('"properties".initNativeView', function in
// if the view requestLayout was not suspended before
// it means we can request a layout if needed.
// will be done after otherwise
view.suspendRequestLayout = false;
view.suspendRequestLayout = wasSuspended;
if (!wasSuspended && view.isLayoutRequestNeeded) {
view.requestLayout();
}