mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
1d65244376
Summary: Different frameworks use different kinds of floats, optional floats, and floats with assigned unit names. All those approaches use different ways to represent undefined and empty values. To deal with it we need to have some helper functions. So, this diff changes some ways that we convert some corner values (like NaN and empty value). That change is motivated by recent personal discoveries in this field that shifted my vision on that. E.g. ComponentKit does not use `CGFloatMax` value as `Infinite` value. UIKit is also (surprisingly to me) okay with using `Infitite` instead of `CGFloatMax`. And, in general, seems using really conceptually appropriate values (instead of UIKit-inspired ones) it's the right thing to do. Reviewed By: mdvacca Differential Revision: D15155189 fbshipit-source-id: 33e15141f1ca3efb400a7160811224335de34ba1