LazyComponent
OfficialLazy-loads content when it becomes visible.
Authorlynx-family
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Provide a concise mechanism to render child content only when it enters the viewport, improving initial render performance in complex UIs.
Core Features & Use Cases
- On-demand rendering: Render children only after exposure to viewport, reducing initial load time.
- Optional unload: If unloadable is enabled, free memory when content exits the viewport.
- Flexible exposure controls: Supports adjustable exposure margins via top, bottom, left, and right props.
- Usage scenarios: Ideal for long lists, lazy-loaded components inside ScrollView, and virtualization patterns.
Quick Start
Place a LazyComponent with unique scene and pid around your content to enable on-viewport loading.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: LazyComponent Download link: https://github.com/lynx-family/lynx-ui/archive/main.zip#lazycomponent Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.