Release 1.0.13
Release Notes
🚀 What’s New
- 📐 Reworked the bridge measurement pipeline to trust the dedicated wrapper first, eliminating runaway heights from
documentElementscroll math. - 🖼 Media now registers with a shared
ResizeObserverand usesdecode()/load events so late-loading images, iframes, and videos snap to the correct height without extra network fetches. - 🛡️ Added a sanity guard that retries and then clamps extreme height spikes (>120 000 px), keeping layout safe even when third-party markup misbehaves.
🔧 Quality & Stability
- 🔁 Fallback loop now resets gracefully—the bridge retries a few times, then falls back to the last good measurement instead of spamming
postMessage. - 🧼 Trailing
<br>/empty<p>trimming remains in place, but paired with smarter wrapper rebuilds so DOM rewrites stay rock solid. - 📄 README refreshed to document the new safety checks, media pipeline, and overall sizing strategy.
📚 Docs & DX
- ✍️ Updated highlights and architecture notes to match the modernized bridge so the README sells the current behavior clearly.
- 🧪 Example app stays focused on real-world scenarios after removing the temporary debug toggle.
Thanks to these changes, react-native-sized-webview now handles dynamic, rich content (and the occasional flaky CMS export) with a whole lot more confidence. Enjoy the smoother sizing! 💪
Full Changelog: v1.0.12...v1.0.13