react-native-image-picker vs expo ImagePicker

I was stuck with the same issue, and now I have resolved this. React native cli and expo cli both have some package differences. Similarly image-picker for both works differently.

For expo cli, you can check the documentation here: https://docs.expo.io/versions/latest/sdk/imagepicker/#__next

You can try for uploading image via camera using ImagePicker.launchCameraAsync and from photo library using ImagePicker.launchImageLibraryAsync.

While in react-native cli I was able to write a single function to choose from both camera and photo library but could not find a way for the same in expo yet.


Use expo-image-picker if you're using Expo.

Anything that requires the use of react-native link will not work with Expo, unless stated that it is already included in Expo.