Openwell
Openwell

Reputation: 376

React native camera doesn't return full file path

I just installed the package and I'm trying to access the picture, although I'm getting a directory without the image.

Dependencies

"react-native": "0.61.5",
"react-native-camera": "^3.22.0",

My Code

takePicture = async () => {
  if (this.camera) {
    const options = {quality: 0.5, base64: true};
    const data = await this.camera.takePictureAsync(options);
    console.log(data.uri);
  }
};

Output file:///data/user/0/*******/cache/Camera but the file is missing

"deviceOrientation": 1, "height": 3456, "pictureOrientation": 1, "uri": "file:///data/user/0/***/cache/Camera", "width": 4608}

Upvotes: 1

Views: 700

Answers (1)

Openwell
Openwell

Reputation: 376

https://github.com/react-native-community/react-native-camera/releases/tag/v3.22.1

The issue was fixed by the creator. 18hours ago.. which I didn't know.

Upvotes: 1

Related Questions