react-native/Libraries
Adam Roth 9c73e2ff7a [Image] Improved loading of Assets Library and Photos Framework images.
Summary:
Update to https://github.com/facebook/react-native/pull/1969

--
Recent improvements allow RCTImageLoader to select a more appropriate sized image based on the layout dimensions. Sizes:

	- asset.thumbnail
	- asset.aspectRatioThumbnail
	- asset.defaultRepresentation.fullScreenImage
	- asset.defaultRepresentation.fullResolutionImage

Prior, only the fullResolutionImage was used. This was memory intensive and resulted in crashes when loading several large images at once. The updated implementation works well, but can be made more efficient:

Consider loading 10 8MP (3264x2448) images in 150x150 pixel containers. The target size (150x150) is larger than asset.thumbnail (approx 100x100), therefore the fullScreenImage representation is used instead (approx 1334x1000).

This commit will scale the asset to the minimum size required while taking into account original aspect ratio and device scale. Memory usage is considerably lower and many more images can be loaded in
sequence without having to worry
Closes https://github.com/facebook/react-native/pull/2008
Github Author: Adam Roth <adamjroth@gmail.com>
2015-07-21 05:32:48 -08:00
..
ART [ReactNative] revert D2233419: 'Dynamic Text Sizes for Text component' 2015-07-14 15:55:06 -08:00
ActionSheetIOS Increased warning levels to -Wall -Wextra, and fixed Xcode 7 beta issues 2015-06-15 07:52:50 -08:00
AdSupport [React Native] Update native error callback handling 2015-07-07 08:54:05 -08:00
Animation [react-native] Typo fix (s/monolithically/monotonically/) 2015-07-09 14:40:50 -08:00
AppRegistry [Flow] Fix or suppress errors in react-native for Flow v0.13.0 2015-06-22 09:48:15 -08:00
AppStateIOS [RN|madman] init AppStateIOS.currentState with 'active' 2015-06-11 13:22:16 -08:00
BatchedBridge [ReactNative] Refactor BatchedBridge and MessageQueue 2015-06-17 07:49:33 -08:00
CameraRoll [react_native] JS files from D2164068: support filtering by mimeType in CameraRollManager#getPhotos 2015-06-17 12:20:27 -08:00
Components [Animated][BREAKING_CHANGE] Convert <TouchableOpacity> to Animated 2015-07-20 16:44:36 -08:00
CustomComponents [Navigator] Add a callback that is called after emitting an event. 2015-07-20 21:49:58 -08:00
DebugComponentHierarchy [ReactNative] Send debug component ownership info in createView 2015-06-25 05:47:24 -08:00
Device flowify some Libraries 2015-03-25 11:09:54 -08:00
Fetch [ReactNative] clean lint in all of Libraries/ 2015-05-19 13:47:04 -08:00
Geolocation Increased warning levels to -Wall -Wextra, and fixed Xcode 7 beta issues 2015-06-15 07:52:50 -08:00
Image [Image] Improved loading of Assets Library and Photos Framework images. 2015-07-21 05:32:48 -08:00
Inspector [react native] prepare the react native inspector for the new react devtools 2015-07-14 12:35:43 -08:00
Interaction InteractionManager: remove dev timeout warnings 2015-07-01 04:51:28 -08:00
JavaScriptAppEngine [ReactNative] Make ErrorCookie work. 2015-07-15 04:04:09 -08:00
LinkingIOS Changed methodQueue to a property 2015-06-19 04:20:39 -08:00
NativeApp [ReactNative] Add "RCTNativeAppEventEmitter" 2015-05-15 16:57:18 -08:00
Network [React Native][iOS] XHR upload progress events 2015-07-20 22:48:55 -08:00
Picker Removed deprecated RCT_EXPORT + code paths 2015-06-05 09:58:25 -08:00
PushNotificationIOS add local notification api schedule and present 2015-07-14 09:08:30 -08:00
RCTTest Migrate unit tests from FBReactKitModules to FBReactKit 2015-07-07 16:39:35 -08:00
RKBackendNode [ReactNative] clean lint in all of Libraries/ 2015-05-19 13:47:04 -08:00
ReactIOS [Animated][BREAKING_CHANGE] Convert <TouchableOpacity> to Animated 2015-07-20 16:44:36 -08:00
ReactNative Reverted ca9d1b3bf5a6f46ec29babe8685634690ff9a2bc to unbreak groups 2015-07-17 04:03:01 -08:00
Settings Check for RCTSettingsManager in Settings.ios 2015-07-06 04:47:04 -08:00
Storage [Docs] Clarify in the AsyncStorage docs that it is global to the app, not OS 2015-06-15 14:18:09 -08:00
StyleSheet [transform] add perspective property to transform 2015-07-15 08:08:29 -08:00
Text Reverted ca9d1b3bf5a6f46ec29babe8685634690ff9a2bc to unbreak groups 2015-07-17 04:03:01 -08:00
Utilities [cg] Perf logging 2015-07-16 14:24:49 -08:00
Vibration Increased warning levels to -Wall -Wextra, and fixed Xcode 7 beta issues 2015-06-15 07:52:50 -08:00
WebSocket [ReactNative] Remove unused executor context id 2015-07-14 16:40:21 -08:00
react-native [ReactNative] Export Easing module so folks can use it 2015-07-09 02:44:13 -08:00
vendor Update StaticContainer from static_upstream 2015-07-06 15:06:59 -08:00
Promise.js Replace ES6Promise with Promise 2015-04-15 06:06:29 -08:00