rnimage picker undefined is not an object
import * as ImagePicker from "react-native-image-picker"
<TouchableOpacity style={styles.CameraIconContent}
onPress={() =>
ImagePicker.launchImageLibrary(
{
mediaType: 'photo',
includeBase64: false,
maxHeight: 200,
maxWidth: 200,
},
(response) => {
console.log(response);
this.setState({resourcePath: response});
},
)
}
>
<Image
source={CAMERA_ICON}
resizeMode = "contain"
style={{
width: 20,
height: 20
}}
/>