* feat(rn-camera): add deviceOrientation and videoOrientation to record response.
* feat(rn-camera): add deviceOrientation and pictureOrientation to take-picture-response
* fix(rn-camera): unify orientation handling for recording and takeing picture
* fix(types): adjust typescript types
* docs(rn-camra): document new properties
* fix(android): respect actual boolean value instead of only checking if it is present.
* feat(android): implement orientation prop for takePictureAsync
* feat(android): implement orientation prop for recordVideoAsync
* docs(rn-camera): adjust documentation
* fix(types): unmark properties as ios only
* fix(android): use constants
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':react-native-camera'.
> Could not resolve all artifacts for configuration ':react-native-camera:classpath'.
> Could not find intellij-core.jar (com.android.tools.external.com-intellij:intellij-core:26.0.1).
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/external/com-intellij/intellij-core/26.0.1/intellij-core-26.0.1.jar
I got this error when I call `recordAsync(...)` with `quality: RNCamera.Constants.VideoQuality['480p']` on Samsung Galaxy Tab S 10.5.
```
Error: Error retrieving camcorder profile params
at createErrorFromErrorData (NativeModules.js:123)
at NativeModules.js:80
at MessageQueue.__invokeCallback (MessageQueue.js:400)
at MessageQueue.js:139
at MessageQueue.__guardSafe (MessageQueue.js:316)
at MessageQueue.invokeCallbackAndReturnFlushedQueue (MessageQueue.js:138)
```
It happens because there is no check if device actually supports given quality.
To make the `CamcorderProfile.get(quality)` call safe we need to check if there is appropriate CamcorderProfile by calling `CamcorderProfile.hasProfile(quality))`.
This PR fixes that issue.
* Add 'doNotSave' flag to android
Added check for 'doNotSave' flag to prevent saving picture to cache
* Update RNCameraManager to check for 'doNotSave'
Updated RNCameraManager to avoid saving to disk when 'doNotSave' set to true
* Update RNCamera to check for 'doNotSave'
Updated RNCameraManager to avoid saving to disk when 'doNotSave' provided and set to true
* Added notes for doNotSave
Added documentation for using doNotSave option
- Updated RNCamera.js to allow for path in recording options
- Updated RNCamera.m to check for new `path` key in options
- Updated RNCameraView.java to check for `path` property to use
- Updated RNCamera.md to reflect new option
* add scan support for landscape mode
* refactoring
* fix errors
* fix rotation
* add landscape orientation support
* fix exception
* freeze preview image
From PR https://github.com/lwansbrough/react-native-camera/pull/919
* fix bug on android when user take photo and press home button immediately - after that camera not works