react-native/Libraries
Adam Comella 186f308aec BREAKING: Android: Correct value of Dimensions.get('screen').fontScale
Summary:
The PR description has been updated to reflect the new approach.

**Breaking Change Summary**

On Android, the following properties now return a different number:
  - `Dimensions.get('window').fontScale`
  - `Dimensions.get('screen').fontScale`
  - `PixelRatio.getFontScale()`

This is a breaking change to anyone who was using these properties because the meaning of these properties has now changed.

These properties used to return a value representing font scale times density ([`DisplayMetrics.scaledDensity`](https://developer.android.com/reference/android/util/DisplayMetrics.html#scaledDensity)). Now they return a value representing just font scale ([`Configuration.fontScale`](https://developer.android.com/reference/android/content/res/Configuration.html#fontScale)).

**PR Description**

This PR changes a few things:
  - Correctly exposes the font scale to JavaScript as `Dimensions.get('screen').fontScale`. UIManager was exporting `DisplayMetrics.scaledDensity` under the name `fontScale`. How
Closes https://github.com/facebook/react-native/pull/11008

Differential Revision: D4558207

Pulled By: astreet

fbshipit-source-id: 096ce7b28051325dfd45fdb2a14b5e9b7d3bc46f
2017-02-14 08:45:38 -08:00
..
ART Better error for ART <Group /> 2016-12-07 17:13:42 -08:00
ActionSheetIOS Redo exported headers and include paths for opensource 2016-12-07 15:28:29 -08:00
AdSupport Redo exported headers and include paths for opensource 2016-12-07 15:28:29 -08:00
Alert Ensure documentation has consistent relative links 2017-01-31 12:13:31 -08:00
Animated Export Animated.Interpolation 2017-02-09 14:46:11 -08:00
AppState docs(AppState.js): update example to ES6 2017-01-23 11:58:33 -08:00
BatchedBridge Some perf tools for debugging js stalls 2017-02-06 17:46:34 -08:00
BugReporting Patch up for future React Sync 2017-02-08 14:50:43 -08:00
CameraRoll Ensure documentation has consistent relative links 2017-01-31 12:13:31 -08:00
Components return if UIManager failed to measure node 2017-02-09 21:00:17 -08:00
Core Patch up for future React Sync 2017-02-08 14:50:43 -08:00
CustomComponents RN: Revert ListView Separator Change 2017-02-06 18:46:10 -08:00
DebugComponentHierarchy Move React Core Integration to a Dependency 2016-04-21 09:28:23 -07:00
EventEmitter RN: Cleanup OSS JS & Flow Declarations 2016-11-20 17:58:29 -08:00
Experimental Fix `getItemLayout` flow type to include `index` 2017-02-13 18:15:43 -08:00
Geolocation Update Geolocation.js 2017-01-31 11:58:30 -08:00
Image RN: Fix Type of `accessibilityLabel` in <Image> 2017-02-02 22:13:26 -08:00
Inspector Fix inspector crash 2017-02-13 01:30:32 -08:00
Interaction Some perf tools for debugging js stalls 2017-02-06 17:46:34 -08:00
JSInspector Add Network agent 2016-11-02 12:29:15 -07:00
LayoutAnimation Mention that LayoutAnimation has to be explicitly enabled on A… 2016-11-25 15:28:28 -08:00
Linking Auto-fix lint errors 2016-08-09 06:43:46 -07:00
LinkingIOS Redo exported headers and include paths for opensource 2016-12-07 15:28:29 -08:00
Modal Add property to force HW acceleration on Android for modal windows 2016-12-14 10:28:33 -08:00
NativeAnimation Drive any numerical prop via NativeAnimated 2017-01-26 18:28:53 -08:00
NavigationExperimental Deal with 0.38 'FlowFixMe's 2017-01-31 13:13:32 -08:00
Network Use weakSelf in RCTNetworking callbacks 2017-02-13 12:29:58 -08:00
Performance Updated Systrace and RCTRenderingPerf to sync w/ React changes 2017-01-22 09:58:32 -08:00
PermissionsAndroid Update PermissionsAndroid docs to use new APIs 2017-01-09 00:43:31 -08:00
PushNotificationIOS Handle push notifications on iOS 2017-02-03 11:58:30 -08:00
RCTTest Apple TV support 4: support for input (tvOS focus engine) 2016-12-19 06:28:40 -08:00
ReactNative modernize AppRegistry.js and introduce app-specific 'sections' 2017-02-10 12:56:08 -08:00
Renderer findNodeHandle -> ReactNative.findNodeHandle 2017-02-08 19:17:08 -08:00
Sample Fix missing RCTBridgeModule.h 2017-01-31 11:13:50 -08:00
Settings Redo exported headers and include paths for opensource 2016-12-07 15:28:29 -08:00
Share Update Share.js. Fixed bad grammar 2016-11-23 11:28:29 -08:00
Storage result in RCTAsyncStorage.multiGet could be null. 2016-12-15 22:43:30 -08:00
StyleSheet Patch up for future React Sync 2017-02-08 14:50:43 -08:00
Text Revert D4538026: Stop allocating an RCTView for everying RCTRawText 2017-02-13 15:00:18 -08:00
Utilities BREAKING: Android: Correct value of Dimensions.get('screen').fontScale 2017-02-14 08:45:38 -08:00
Vibration Redo exported headers and include paths for opensource 2016-12-07 15:28:29 -08:00
WebSocket Fix race condition during initialization 2017-02-09 13:32:31 -08:00
react-native Patch up for future React Sync 2017-02-08 14:50:43 -08:00
vendor RN: Cleanup OSS JS & Flow Declarations 2016-11-20 17:58:29 -08:00
Promise.js Make onUnhandled safe for undefined errors 2016-08-02 07:58:28 -07:00
promiseRejectionIsError.js RN: Cleanup OSS JS & Flow Declarations 2016-11-20 17:58:29 -08:00