mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: shergin added a new assert to dimensions calculations in D24038911 (https://github.com/facebook/react-native/commit/e85372298109abf258d5154e2a28bc6496fb9529). This crashes in bridgeless mode b/c no bridge. This diff uses `turboModuleRegistry` as a bridge workaround. The registry is a [weak property](https://www.fburl.com/diffusion/sunv3bx9) so retain cycles shouldn't be an issue here, let me know if that's incorrect. As a nice bonus, this fixes dynamic font sizing in bridgeless mode. It was broken before since it relied on the bridge. Changelog: [Internal] Reviewed By: ejanzer Differential Revision: D24256338 fbshipit-source-id: 141d36239ac6a6e9e87ca96eea7aeec56729095d