DeferredComponent
Deferred rendering for ReactLynx. `DeferredComponent` mounts a child after the first layout or a configurable frame delay, with optional placeholder content.Info
You can check the source code to understand how it works, and you're welcome to submit PRs to enhance its capabilities.
Basic Usage
Compare the default one-frame deferral with immediate rendering.
Examples
Delay Frames
Keep a placeholder visible for a chosen frame count and observe later layout changes.
Structure
Component API
DeferredComponent
childreniOSAndroid
Child element to render after the delay.
delayFramesiOSAndroid
Frames to delay rendering children. The first layout counts as the first
frame. Values below 1 and non-finite values (NaN or either Infinity) render
children immediately without a wrapper.
estimatedStyleiOSAndroid
Estimated style applied to the wrapper before and after children appear.
onLayoutChangeiOSAndroid
Called for wrapper layout events after children appear. The initial layout
that starts the delay does not invoke this callback. Disabled delays render
children directly and do not report wrapper layout events.
placeholderiOSAndroid
Content displayed until the delayed children appear.