Skip to content

applyLayoutProps

applyLayoutProps(node, props): void

Defined in: ui/src/yoga-helpers.ts:223

Apply common LayoutProps to a Yoga node.

Uses key-presence checks ("width" in props), not !== undefined: a present key with an undefined value is how the React reconciler marks a removed prop (see commitUpdate), and it must reset that property to its Yoga default rather than being skipped like a key that was never set.

Node

LayoutProps

void