Overview
Ever wondered what Uniwind Pro is doing behind the scenes? The Diagnostics API gives you a window into the Shadow Tree. See exactly when components register, unregister, and how styles flow through the C++ engine.Enabling Diagnostics
What You Can Track
Component Mounts
WhenreportMounts is enabled, you’ll see every component that registers with the Shadow Tree:
| Part | Meaning |
|---|---|
(5) | Total shadow nodes currently registered |
🟢 | A new node was added |
tag 42 | React Native’s internal view identifier |
className | The Tailwind classes applied to this component |
Component Unmounts
WhenreportUnmounts is enabled, you’ll see components leaving the Shadow Tree:
Style Updates
This is where it gets interesting. WhenreportUpdates is enabled, you’ll see exactly what styles are being applied and how:
| Icon | Type | Description |
|---|---|---|
| 🔥 | C++ updates | Styles applied directly via the Shadow Tree, zero re-renders |
| ✨ | Native updates | Props updated directly on Native Views (Swift/Kotlin) |
Configuration Options
| Option | Type | Default | Description |
|---|---|---|---|
reportMounts | boolean | false | Log when components register with the Shadow Tree |
reportUnmounts | boolean | false | Log when components unregister from the Shadow Tree |
reportUpdates | boolean | false | Log style updates with detailed property changes |
Enable only what you need. Logging everything on a complex screen can get noisy.
Common Use Cases
Debugging Theme Switches
EnablereportUpdates to see all styles that change when switching themes:
Detecting Memory Leaks
All styled views are stored in C++. Enable mount tracking to verify components are properly cleaned up:(5) doesn’t drop to zero when expected, you might have a memory leak.
If you suspect a memory leak in Uniwind Pro, create an issue with the diagnostics output attached.
Verifying Zero Re-renders
Both C++ updates (🔥) and Native updates (✨) are applied without triggering React re-renders. If you see your styles in these logs, Uniwind Pro is working as expected.Platform Support
| Platform | Support |
|---|---|
| iOS | Full diagnostics |
| Android | Full diagnostics |
| Web | No-op (function exists but produces no output) |
Related
Shadow Tree Updates
Learn how Uniwind Pro updates styles without re-renders
Theme Transitions
Add smooth animated transitions between themes