[🐛] undefined is not a function (near '...ImagePicker.showImagePicker...')
Description
How to repeat issue and example
npx react-native init- Install and use this library
Additional Information
- Image Picker version:
3.0.1 - React Native version:
0.63.4 - Platform: iOS
- Development Operating System: MacOS, BigSur

Same on Android
pixel 2
import {launchImageLibrary} from 'react-native-image-picker' fixed it
@smakosh , @pedro , @ligaz , @nevir , @jkappers
as ImagePicker.showImagePicker is not working then how can i get option for either select image from gallery or camera.
There are now 2 exported functions that you can import, one to get images from the library and the other to launch the camera.
Need both image option at a time. any option for that @smakosh .
same on Android
Still there is no solution on this issue? I also want to select both option - library & launch camera. How to fix this issue?
Is there a way to get both options, library and launch camera?
I think you need to downgrade to version 2.3.4 to get this option
you can use react-native-options-menu to build your own menu to show both options.
import {launchImageLibrary} from 'react-native-image-picker'fixed it
Really strange solution but works for me too. It would be nice for someone to take a look at why this is.
Follow this solution: https://stackoverflow.com/a/68378454/7921804