TypeError: undefined is not an object (evaluating '_reactNativeImagePicker.default.launchImageLibrary')
// I had this same issue and this is how I solved it.
import * as ImagePicker from "react-native-image-picker"
TypeError: undefined is not an object (evaluating '_reactNativeImagePicker.default.launchImageLibrary')
// I had this same issue and this is how I solved it.
import * as ImagePicker from "react-native-image-picker"
[Fri Apr 16 2021 12:41:49.460] ERROR TypeError: undefined is not an object (evaluating '_reactNativeImagePicker.default.showImagePicker')
import * as ImagePicker from "react-native-image-picker"
<Button onPress={() =>
ImagePicker.launchImageLibrary(
{
mediaType: 'photo',
includeBase64: false,
maxHeight: 200,
maxWidth: 200,
},
(response) => {
console.log(response);
this.setState({resourcePath: response});
},
)
}
title="Select Image"/>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us