Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Respect scale in RCTPhotoLibraryImageLoader
Summary: RCTPhotoLibraryImageLoader was not using the scale argument so the image loaded wasn't always the right resolution. **Test plan** On my iPhone 6, which has `RCTScreenScale() === 2`, see that an `<Image>` rendered with a `ph://XXX` URI is rendered properly in 2x. More thoroughly, I used `PHAsset.fetchAssetsWithMediaType(.Image, options: fetchOptions)` to fetch PHAssets to get a `asset.localIdentifier` to test. Then, I rendered a `<Image source={{uri: `ph://${localIdentifier}`}} style={{width: 375, height: 375}} />`. Closes #8458 Differential Revision: D3492495 fbshipit-source-id: 34b2757f880edf6ff1751773f6e1a0f62c289f5a
- Loading branch information