react-native/Libraries
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
..
ART Fixed deployment targets for React iOS submodules 2015-06-10 06:16:15 -08:00
ActionSheetIOS Increased warning levels to -Wall -Wextra, and fixed Xcode 7 beta issues 2015-06-15 07:52:50 -08:00
AdSupport Increased warning levels to -Wall -Wextra, and fixed Xcode 7 beta issues 2015-06-15 07:52:50 -08:00
Animation [AnimationExperimental] Fixed CATransaction completion block invoke immediately 2015-06-16 06:15:23 -08:00
AppRegistry [ErrorMessage] Change error message when app is not registered 2015-05-31 13:14:02 -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 [ReactNative] Change text input underline color 2015-06-17 15:25:52 -08:00
CustomComponents [Navigator]: Add a getter to get the current route that is focused from the navigation context. 2015-06-19 16:12:51 -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 Add support for selecting media from library 2015-06-22 03:09:16 -08:00
Inspector [RN Inspector] : fix CSS not to use view overflow which is not supported on iOS 2015-06-18 05:46:33 -08:00
Interaction InteractionManager: DEV warning for possibly unclosed handles 2015-05-20 16:54:03 -08:00
JavaScriptAppEngine [react-packager] Rewrite dependency graph (support node_modules, speed, fix bugs etc) 2015-06-19 18:05:18 -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] JS files from D2164109: [react_native] Fix JS error stacktraces on Android 2015-06-19 04:32:40 -08:00
Picker Removed deprecated RCT_EXPORT + code paths 2015-06-05 09:58:25 -08:00
PushNotificationIOS [PushNotification] Unregister for remote notifications support. 2015-06-15 12:13:46 -08:00
RCTTest Improve test architecture so failures don't crash the simulator 2015-06-17 07:09:23 -08:00
RKBackendNode [ReactNative] clean lint in all of Libraries/ 2015-05-19 13:47:04 -08:00
ReactIOS [ReactNative] refactor the inspector 2015-06-11 13:49:54 -08:00
ReactNative [ReactNative] Block native from becoming js responder 2015-06-19 16:30:15 -08:00
Settings Increased warning levels to -Wall -Wextra, and fixed Xcode 7 beta issues 2015-06-15 07:52:50 -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 Sort StyleProps alphabetically 2015-06-15 13:29:46 -08:00
Text [React Native] Update description on RCTText 2015-06-19 07:59:41 -08:00
Utilities [ReactNative] Add PerformanceLogger to measure TTI 2015-06-19 15:01:35 -08:00
Vibration Increased warning levels to -Wall -Wextra, and fixed Xcode 7 beta issues 2015-06-15 07:52:50 -08:00
WebSocket Increased warning levels to -Wall -Wextra, and fixed Xcode 7 beta issues 2015-06-15 07:52:50 -08:00
react-native Add support for selecting media from library 2015-06-22 03:09:16 -08:00
vendor [ReactNative] Block native from becoming js responder 2015-06-19 16:30:15 -08:00
Promise.js Replace ES6Promise with Promise 2015-04-15 06:06:29 -08:00