title: react-native-image-picker vs expo ImagePicker
body: <p>I have tried many attempts to get react-native-image-picker up and working with my RN app. I am using Expo and VS Code and am not running the app with Xcode or Android Studio. There seems to be many options to getting the camera roll available in an app and I am not sure which is the best path to take. None seem to be working for me so I would like to pick the best path and focus on making that one route work. </p>
  
  <p>I am following the documentation: <a href="https://github.com/react-native-community/react-native-image-picker" rel="noreferrer">https://github.com/react-native-community/react-native-image-picker</a></p>
  
  <p>Things I have tried:</p>
  
  <ul>
  <li>React Native Camera Roll</li>
  <li>Expo ImagePicker</li>
  <li>expo-image-picker</li>
  <li>react-native-image-picker</li>
  <li>react-images-upload</li>
  <li>react-native-photo-upload</li>
  </ul>
  
  <p>My code:</p>
  
  <pre><code>import React, {useState, useEffect} from 'react';
  import {StyleSheet, View, TextInput, TouchableOpacity, Text, CameraRoll } from 'react-native'
  import ImagePicker from 'react-native-image-picker';
  // import * as ImagePicker from 'expo-image-picker';
  import Constants from 'expo-constants';
  
  const PicturesScreen = ({navigation}) =&gt; {
      const [pictures, setPictures] = useState([]);
  
  getPermissionAsync = async () =&gt; {
      if (Constants.platform.ios) {
        const { status } = await Permissions.askAsync(Permissions.CAMERA_ROLL);
        if (status !== 'granted') {
          alert('Sorry, we need camera roll permissions to make this work!');
        }
      }
  };
  
  useEffect(() =&gt; {
      getPermissionAsync();
  }, []);
  
  selectPhotoTapped = () =&gt; {
     const options = {
        quality: 1.0,
        maxWidth: 500,
        maxHeight: 500,
        storageOptions: {
          skipBackup: true,
        },
      };
  
      ImagePicker.showImagePicker(options, response =&gt; {    
        if (response.didCancel) {
          console.log('User cancelled photo picker');
        } else if (response.error) {
          console.log('ImagePicker Error: ', response.error);
        } else if (response.customButton) {
          console.log('User tapped custom button: ', response.customButton);
        } else {
          let source = {uri: response.uri};
          console.log('source: ' + source);
          // You can also display the image using data:
          // let source = { uri: 'data:image/jpeg;base64,' + response.data };
  
          setPictures({
            picture: source
          });
        }
      });
    };
  
  
  return (
      &lt;View style = {styles.container}&gt;
          &lt;TouchableOpacity style = {styles.buttonContainerPhoto} onPress={()=&gt; selectPhotoTapped()}&gt; 
              &lt;Text style={styles.buttonText} &gt;
                  Upload Photos 
              &lt;/Text&gt;
          &lt;/TouchableOpacity&gt; 
  
      &lt;TouchableOpacity style = {styles.buttonContainer} onPress={()=&gt; navigation.navigate('NextScreen')}&gt; 
              &lt;Text style={styles.buttonText} &gt;
                  Next 
              &lt;/Text&gt;
          &lt;/TouchableOpacity&gt;
      &lt;/View&gt;
      );
  };
  
  const styles = StyleSheet.create({
      container: {
          ...
      }
  });
  
  export default PicturesScreen; 
  </code></pre>
  
  <p>I have made sure to link the packages, I have also uninstalled and reinstalled and started from scratch a few times. I have downgraded the version to make it work but I still continue to get one of these error messages: </p>
  
  <blockquote>
    <p>react-native-image-picker: NativeModule.ImagePickerManager is null</p>
  </blockquote>
  
  <p>or </p>
  
  <blockquote>
    <p>Can not read property 'showImagePicker' of undefined.</p>
  </blockquote>
  
  <p>or </p>
  
  <blockquote>
    <p>undefined is not an object(evaluating 'imagepickerManager.showimagepicker')</p>
  </blockquote>
  
  <p>Is it causing issues because I am using Expo? Should I just be using CameraRoll with react-native?</p>