react-native/React
Kevin Gozali 6611fefef7 iOS: Exposes the RCTFont size overrides so unit tests can use the same values
Summary:
`RCTFontTests` test in RNTester is broken if the target deployment is <= OS 8.2. This is because RCTFont.mm overrides the OS-defined values, but the override is only visible to RCTFont.mm internals. As the result, when the Unit test tries to create UIFont of the "same" weight, it got a different font - most likely due to internal floating rounding errors.

To mitigate, code that wants to test out internals of RCTFont should import RCTFontConstantsOverride.h

Reviewed By: mmmulani

Differential Revision: D7900954

fbshipit-source-id: e5814ef059a8afdfb5205ca1af46c41b3cfd4318
2018-05-07 17:31:12 -07:00
..
Base Teach JS stack-parsing regex about alternative formats 2018-04-20 09:01:27 -07:00
CxxBridge Update ModuleRegistry if there're new modules registered 2018-04-17 08:32:15 -07:00
CxxExceptions iOS C++: Add ICxxExceptionManager to access RCTExceptionsManager native module 2018-03-19 00:06:57 -07:00
CxxModule Update license headers for MIT license 2018-02-16 18:31:53 -08:00
CxxUtils Update license headers for MIT license 2018-02-16 18:31:53 -08:00
DevSupport Expose native show message method in header 2018-03-14 11:17:12 -07:00
Fabric Fabric: Managing `LocalData` instances in mounting pipeline 2018-04-26 18:03:07 -07:00
Inspector Forward VM version to inspector 2018-02-13 08:16:50 -08:00
Modules Add ability for Animated views to be created with scale X or scale Y 2018-04-06 17:46:54 -07:00
Profiler Update license headers for MIT license 2018-02-16 18:31:53 -08:00
React.xcodeproj iOS: Exposes the RCTFont size overrides so unit tests can use the same values 2018-05-07 17:31:12 -07:00
UIUtils Update license headers for MIT license 2018-02-16 18:31:53 -08:00
Views iOS: Exposes the RCTFont size overrides so unit tests can use the same values 2018-05-07 17:31:12 -07:00
third-party.xcconfig OSS: upgrade Folly 2016.09.26 => 2016.10.31 2018-04-13 17:33:23 -07:00