What problem does it solve?
AI assistants frequently hallucinate React patterns—hooks, functional components, this.props, useEffect—that do not exist in Valdi, even though Valdi uses TSX/JSX syntax. This Skill supplies the correct Valdi component, styling, event, and lifecycle rules so generated code compiles to native views on iOS, Android, and macOS.
Core Features & Use Cases
- React-to-Valdi correction table: Maps useState/useEffect/props to StatefulComponent, setState, viewModel, and onCreate/onViewModelUpdate/onDestroy lifecycles.
- Styling and layout rules: Documents type-safe Style<View>/Style<Label> usage, Yoga flexbox (flexGrow not flex, gap support), font strings instead of fontSize, and ScrollView restrictions.
- Platform and API guidance: Covers Device.isIOS/isAndroid/isDesktop guards, provider dependency injection, setTimeoutDisposable timers, @ExportModel ViewModel type restrictions, and new elements like <glass> and <textanimationgroup>.
- Use Case: When asked to build a Valdi settings screen, the assistant produces a StatefulComponent with onRender() as a void method, element callbacks like onTap, and Style objects—instead of invalid React hooks.
Quick Start
Write a Valdi TSX component with a counter button using StatefulComponent, setState, and correct Valdi styling rules.