react-native-image-picker
Advanced tools
Comparing version 0.5.0 to 0.6.0
@@ -23,3 +23,3 @@ import React from 'react-native'; | ||
// Specify any or all of these keys | ||
var options = { | ||
const options = { | ||
title: 'Select Avatar', | ||
@@ -63,3 +63,3 @@ cancelButtonTitle: 'Cancel', | ||
var styles = StyleSheet.create({ | ||
const styles = StyleSheet.create({ | ||
container: { | ||
@@ -66,0 +66,0 @@ flex: 1, |
@@ -9,4 +9,4 @@ { | ||
"dependencies": { | ||
"react-native": "^0.9.0" | ||
"react-native": "^0.11.0" | ||
} | ||
} |
@@ -7,3 +7,3 @@ { | ||
}, | ||
"version": "0.5.0", | ||
"version": "0.6.0", | ||
"description": "A React Native module that allows you to use the native UIImagePickerController UI to select a photo from the device library or directly from the camera.", | ||
@@ -10,0 +10,0 @@ "author": "Marc Shilling (marcshilling)", |
@@ -8,3 +8,3 @@ # react-native-image-picker | ||
2. In the XCode's "Project navigator", right click on your project's Libraries folder ➜ `Add Files to <...>` | ||
3. Go to `node_modules` ➜ `react-native-image-picker` ➜ select the `UIImagePickerManager` folder | ||
3. Go to `node_modules` ➜ `react-native-image-picker` ➜ select the `UIImagePickerManager` folder **Make sure you have 'Create Groups' selected** | ||
4. Make sure `UIImagePickerManager.m` is listed under 'Compile Sources' in your project's 'Build Phases' tab | ||
@@ -32,2 +32,7 @@ 5. Compile and have fun! | ||
chooseFromLibraryButtonHidden: false, | ||
customButtons: { | ||
'Choose Photo from Facebook': 'fb', // [Button Text] : [String returned upon selection] | ||
}, | ||
maxWidth: 100, | ||
maxHeight: 100, | ||
returnBase64Image: false, | ||
@@ -34,0 +39,0 @@ returnIsVertical: false, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
96001
62