nstudio / nstudio/nativescript-plugins

[Camera-Plus] Camera preview size is not proper (iOS)

Open
#63 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
55
Forks
42
Avg merge
49m
Merged PRs (30d)
1

Description

Hi! Everything works fine on Android. On iOS, it is not possible to make it to the full screen.

photo_2021-07-30_09-42-52

  <GridLayout  row="0" (loaded)="onCameraContainerLoaded($event)">
    <CameraPlus class="camera-layout"  debug="true" galleryPickerMode="single" showFlashIcon="false"
      showToggleIcon="false" showCaptureIcon="false" showGalleryIcon="false" confirmSaveText="CONFIRM!"
      confirmRetakeText="RETAKE!" (loaded)="onCameraLoaded($event)" (photoCapturedEvent)="photoCapturedEvent($event)">
    </CameraPlus>
  </GridLayout>

  <LottieView *ngIf="inProgress" width="75%" [src]="src" loop="true" autoPlay="true"
    (loaded)="lottieViewLoaded($event)"></LottieView>
  </GridLayout>```

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the iOS preview sizing problem with the CameraPlus layout shown in the issue, then inspect the CameraPlus iOS implementation and its container sizing behavior. Done means the camera preview fills the available screen on iOS without regressing the working Android layout.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, typescript
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.