react-native/React
Pieter De Baets e30327cb13 Fix styling of system fonts
Summary:
When you call `-[RCTConvert UIFont:withFamily:...]` with a non-nil font object, we'll try to use the existing font object for system information. On iOS9+ which uses the San Francisco font, `[UIFont fontNamesForFamilyName:]` doesn't return anything useful, so we need to make sure that we detect this as a system font and use the appropriate methods. This issues is made worse by the fact that RCTTextView and friends recreate the font property for every attribute that is set (pretty horrible perf-wise).

This fixes https://github.com/facebook/react-native/issues/2140

Reviewed By: sahrens

Differential Revision: D3662751

fbshipit-source-id: c528e8945ed361a922c03f861d3c0b584658573b
2016-08-05 12:44:20 -07:00
..
Base Fix styling of system fonts 2016-08-05 12:44:20 -07:00
CSSLayout Prefix isUndefined with "CSS" 2016-08-05 06:28:38 -07:00
Executors Use new enqueueJSCall method everywhere 2016-08-02 11:14:06 -07:00
Modules Provide forceRTL for LTR language to test 2016-08-04 12:28:30 -07:00
Profiler Add more profiling markers to RCTJSCExecutor 2016-07-19 07:28:34 -07:00
React.xcodeproj Handle children internally in CSSLayout 2016-07-20 13:28:30 -07:00
Views Prefix isUndefined with "CSS" 2016-08-05 06:28:38 -07:00