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:
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:
Configuration Options
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
Related
Shadow Tree Updates
Learn how Uniwind Pro updates styles without re-renders
Theme Transitions
Add smooth animated transitions between themes