im using expo-image-picker i am facing this
Error: Requiring module "node_modules\expo-image-picker\build\ImagePicker.js", which threw an exception: TypeError: undefined is not an object (evaluating '_expoModulesCore.NativeModulesProxy.ExponentImagePicker')
this is my code.
import * as ImagePicker from 'expo-image-picker';(async () => { let pickerResult = await ImagePicker.launchImageLibraryAsync({ mediaTypes: ImagePicker.MediaTypeOptions.Images, base64: true, aspect: [4, 3], quality: 0.5, }) if (pickerResult.cancelled === true) { return } let locaUri = pickerResult.uri //console.log(pickerResult.base64) let image: string = pickerResult.base64! })()
im getting error when start the app