react-native/Libraries/Image
Mattias Pfeiffer b2dac834fb Use strong reference in RCTImageLoader
Summary:
This PR is related to the multitude of crashes (#10016, #9751, #9882).

From my understanding, we should be using a strong reference when calling `decodeImageData` or we could be calling the method on a deallocated instance.

PR #9751 have mitigated this by adding a fail-safe, but I think the culprint is the weak reference, which this PR fixes.

Tested on iOS only, since it doesn't touch Android.
Closes https://github.com/facebook/react-native/pull/10147

Differential Revision: D3938763

fbshipit-source-id: 7389d4ae7a98926014401a1fe0cbbdcdd5ee6a01
2016-09-28 13:28:35 -07:00
..
RCTImage.xcodeproj Update React Native minimum OS version to iOS8 2016-09-01 19:43:47 -07:00
__mocks__ Fixed test CRMNowThumbnailCache-test.js 2016-08-03 06:13:29 -07:00
__tests__
AssetRegistry.js
AssetSourceResolver.js
GlobalImageStub.js
Image.android.js Fix invalid package name and Remove unsupported prop in Image.android.js 2016-09-14 13:43:48 -07:00
Image.ios.js Add partial image loading to RCTImageView 2016-09-21 12:14:09 -07:00
ImageEditor.js Auto-fix lint errors 2016-08-09 06:43:46 -07:00
ImageResizeMode.js
ImageSource.js Auto-fix lint errors 2016-08-09 06:43:46 -07:00
ImageSourcePropType.js Support bundle argument for image loading 2016-08-31 17:43:49 -07:00
ImageStore.js
ImageStylePropTypes.js
RCTGIFImageDecoder.h
RCTGIFImageDecoder.m
RCTImageBlurUtils.h
RCTImageBlurUtils.m
RCTImageCache.h Add custom cache setter 2016-08-01 22:13:27 -07:00
RCTImageCache.m Define the Image Cache delegate to be used in the ImageLoader 2016-07-28 08:58:34 -07:00
RCTImageEditingManager.h
RCTImageEditingManager.m
RCTImageLoader.h Add partial image loading to RCTImageView 2016-09-21 12:14:09 -07:00
RCTImageLoader.m Use strong reference in RCTImageLoader 2016-09-28 13:28:35 -07:00
RCTImageStoreManager.h
RCTImageStoreManager.m
RCTImageUtils.h
RCTImageUtils.m Add Image resizeMode center to iOS 2016-07-19 03:43:26 -07:00
RCTImageView.h Rename RCTImageView source to imageSources 2016-08-23 11:28:42 -07:00
RCTImageView.m Add partial image loading to RCTImageView 2016-09-21 12:14:09 -07:00
RCTImageViewManager.h
RCTImageViewManager.m Add partial image loading to RCTImageView 2016-09-21 12:14:09 -07:00
RCTLocalAssetImageLoader.h Load local assets synchronously to prevent image flicker 2016-07-21 07:58:51 -07:00
RCTLocalAssetImageLoader.m Add partial image loading to RCTImageView 2016-09-21 12:14:09 -07:00
RCTResizeMode.h Add Image resizeMode center to iOS 2016-07-19 03:43:26 -07:00
RCTResizeMode.m Add Image resizeMode center to iOS 2016-07-19 03:43:26 -07:00
RelativeImageStub.js
resolveAssetSource.js