updateExtraData

open fun updateExtraData(root: T, extraData: Any)

Subclasses can implement this method to receive an optional extra data enqueued from the corresponding instance of ReactShadowNode in onCollectExtraUpdates.

Since css layout step and ui updates can be executed in separate thread apart of setting x/y/width/height this is the recommended and thread-safe way of passing extra data from css node to the native view counterpart.

TODO T7247021: Replace updateExtraData with generic update props mechanism after D2086999