RNCamera on Android fits rather than fills to view #1539
Comments
As a workaround I'm currently doing it in my own Javascript:
|
@issuehuntfest has funded $20.00 to this issue. See it on IssueHunt |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You may also mark this issue as a "discussion" and i will leave this open. |
@EskelCz has funded $20.00 to this issue.
|
@almost your solution worked for me. Times like this make me love the internet |
Since the issue has been solved apllying @almost solution, im closing this issue. If anyone stills having problems with this, please give a look at: #1539 (comment) |
Hello. Just wandering what's the purpose of const cameraStyle Thanks in advance |
...And also the example value of this.props.style Thanks again |
RTCCamera used to have an option between fit and fill for the layout that would control (this
aspect
prop, which now means something different on RNCamera). RNCamera on Android just does fit, which means if the view isn't the same aspect as the camera then you get black bars. RNCamera on iOS seems to do the opposite which is a pain.Ideally this would be set via a prop but if that isn't done it should at least be made consistent (my preference would be to always fill)
The text was updated successfully, but these errors were encountered: