This repository has been archived by the owner on Oct 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 121
Take picture, Expo client suddenly stopped #7
Comments
with this still can't show the error
|
Hi, i had the same problem. To display error add .catch() after .then()
|
Thanks For this Worked For me! |
@mali3days you should submit a pull request for this! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
i'm facing problem, when i take picture, Expo client suddenly stopped without error information
snap = async function(){
if (this.camera) {
this.camera.takePictureAsync().then(data => {
FileSystem.moveAsync({
from: data,
to:
${FileSystem.documentDirectory}photos/Photo_${this.state .photoId}.jpg
,}).then(() => {
this.setState({
photoId: this.state.photoId + 1,
});
Vibration.vibrate();
});
});
}
};
how to display the error message?
Thanks
The text was updated successfully, but these errors were encountered: