SIGN IN SIGN UP
facebook / react-native UNCLAIMED

A framework for building native applications using React

0 0 0 C++

StyleSheet: Lazily Compute `hairlineWidth` (#55100)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/55100

Changes `StyleSheet` to lazily compute the `hairlineWidth` property, removing the synchronous dependency of importing `StyleSheet` on the initialization of the `PixelRatio` TurboModule.

Changelog:
[General][Changed] - Importing `hairlineWidth` no longer eagerly initializes the `PixelRatio` TurboModule.

Reviewed By: lunaleaps

Differential Revision: D90339801

fbshipit-source-id: 44cbdbec3b132f6e11d46c508dfd74f8efe8cb31
T
Tim Yung committed
e11a2f07e8fd962adb76ff55a9b159e8ca3ae51f
Parent: bb980b0
Committed by meta-codesync[bot] <215208954+meta-codesync[bot]@users.noreply.github.com> on 1/8/2026, 11:28:47 PM