-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Description
Exception log:
Uncaught (in promise, id: 3): "java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.io.File.exists()' on a null object reference"
Appears after calling ImagePicker.openCamera():
ImagePicker.openPicker({
width: 300,
minHeight: 400,
cropping: true,
}).then(image => {
const updatedImages = [...newImages, { path: image.path }];
setNewImages(updatedImages);
uploadImage(image);
});
I'm check that:
- Permission for camera granted
- gradle cleaned and rebuilded
- ImagePicker.openPicker() works correctly
Versions:
- react-native: ^0.82.1
- react-native-image-crop-picker: ^0.51.1
roni-castro-shipt
Metadata
Metadata
Assignees
Labels
No labels