react-native/Libraries/Image
David Mohl 90aad9a610 Add support for selecting media from library
Summary:
This PR adds support for UIImagePickerController to allow selecting a photo / video from the users camera roll.

![ios simulator screen shot jun 14 2015 4 50 03 pm](https://cloud.githubusercontent.com/assets/688326/8147758/ae6dc8d4-12b6-11e5-80f0-2bcaa964a5d8.png)

Example:

Selecting something from camera roll
```
ImagePickerIOS.openSelectDialog(<config>, <successCallback>, <cancelCallback>);

ImagePickerIOS.openSelectDialog({
   showImages: true, // defaults to true
   showVideos: false // defaults to false
}, function (data) {
  console.info("Got a callback!");
  console.info(data); // file URL as in assets-library://asset/asset.JPG?id=E2741A73-D185-44B6-A2E6-2D55F69CD088&ext=JPG
}, function() {
  console.info("Cancelled");
});
```

Using camera
```
ImagePickerIOS.openCameraDialog(<config>, <successCallback>, <cancelCallback>);

ImagePickerIOS.openSelectDialog({
   videoMode: false, // defaults to true, whether to record videos instead
}, function (data) {
  console.info("Got
Closes https://github.com/facebook/react-native/pull/1620
Github Author: David Mohl <me@dave.cx>

Test Plan: Imported from GitHub, without a `Test Plan:` line.
2015-06-22 03:09:16 -08:00
..
RCTImage.xcodeproj Add support for selecting media from library 2015-06-22 03:09:16 -08:00
__tests__ [ReactNative] Copy assets to corresponding folders on Android 2015-06-01 12:21:53 -08:00
AssetRegistry.js [ReactNative] Register assets with AssetRegistry 2015-05-07 17:27:42 -08:00
Image.ios.js Removed deprecated RCT_EXPORT + code paths 2015-06-05 09:58:25 -08:00
ImagePickerIOS.js Add support for selecting media from library 2015-06-22 03:09:16 -08:00
ImageResizeMode.js [react_native] JS files from D2009265: Fix resizeMode for images 2015-04-21 12:04:32 -08:00
ImageSource.js [ReactNative][MAdMan] Add type for image source, flowify AdsManagerObjectiveTypes 2015-04-06 10:32:42 -08:00
ImageStylePropTypes.js [ReactNative] Pull transform properties out into TransformPropTypes 2015-05-06 14:24:10 -08:00
RCTCameraRollManager.h [ReactNative] Expanded license on obj-c files 2015-03-23 13:18:29 -08:00
RCTCameraRollManager.m [CameraRoll] support fetching videos from the camera roll 2015-06-01 15:57:32 -08:00
RCTGIFImage.h [ReactNative] Expanded license on obj-c files 2015-03-23 13:18:29 -08:00
RCTGIFImage.m [ReactNative] Fix analyze errors on oss 2015-04-24 08:28:35 -08:00
RCTImageDownloader.h Optimised blending for translucent images with opaque background color + fixed cropping for images in cover/contain mode. 2015-05-22 07:19:06 -08:00
RCTImageDownloader.m [ReactNative] Allow uploading native files (e.g. photos) and FormData via XMLHttpRequest 2015-06-09 12:27:05 -08:00
RCTImageLoader.h [ReactNative] Refactor RCTDataManager to support pluggable data source modules (RCTURLRequestHandlers) 2015-06-09 12:27:06 -08:00
RCTImageLoader.m Removed nullability attributes until Infer supports them 2015-06-11 10:39:29 -08:00
RCTImagePickerManager.h Add support for selecting media from library 2015-06-22 03:09:16 -08:00
RCTImagePickerManager.m Add support for selecting media from library 2015-06-22 03:09:16 -08:00
RCTImageRequestHandler.h [ReactNative] Refactor RCTDataManager to support pluggable data source modules (RCTURLRequestHandlers) 2015-06-09 12:27:06 -08:00
RCTImageRequestHandler.m [ReactNative] Refactor RCTDataManager to support pluggable data source modules (RCTURLRequestHandlers) 2015-06-09 12:27:06 -08:00
RCTNetworkImageView.h Increased warning levels to -Wall -Wextra, and fixed Xcode 7 beta issues 2015-06-15 07:52:50 -08:00
RCTNetworkImageView.m Increased warning levels to -Wall -Wextra, and fixed Xcode 7 beta issues 2015-06-15 07:52:50 -08:00
RCTNetworkImageViewManager.h [ReactNative] Expanded license on obj-c files 2015-03-23 13:18:29 -08:00
RCTNetworkImageViewManager.m Increased warning levels to -Wall -Wextra, and fixed Xcode 7 beta issues 2015-06-15 07:52:50 -08:00
RCTStaticImage.h [ReactNative] Expanded license on obj-c files 2015-03-23 13:18:29 -08:00
RCTStaticImage.m [ReactNative] Expanded license on obj-c files 2015-03-23 13:18:29 -08:00
RCTStaticImageManager.h [ReactNative] Expanded license on obj-c files 2015-03-23 13:18:29 -08:00
RCTStaticImageManager.m Removed deprecated RCT_EXPORT + code paths 2015-06-05 09:58:25 -08:00
resolveAssetSource.js [ReactNative] Copy assets to corresponding folders on Android 2015-06-01 12:21:53 -08:00