feat: Implement resizeMode
prop for iOS (#1838)
* feat: Implement `resizeMode` prop for iOS - `"cover"`: Keep aspect ratio, but fill entire parent view (centered). - `"contain"`: Keep aspect ratio, but make sure the entire content is visible even if it introduces additional blank areas (centered). * chore: Update prop docs * Update CameraProps.ts * Lint & Format
This commit is contained in:
@@ -112,7 +112,11 @@ export interface CameraProps extends ViewProps {
|
||||
*/
|
||||
format?: CameraDeviceFormat;
|
||||
/**
|
||||
* Specify how you want the preview to fit the container it's in
|
||||
* Specifies the Preview's resize mode.
|
||||
* * `"cover"`: Keep aspect ratio and fill entire parent view (centered).
|
||||
* * `"contain"`: Keep aspect ratio and make sure the entire content is visible inside the parent view, even if it introduces additional blank areas (centered).
|
||||
*
|
||||
* @default "cover"
|
||||
*/
|
||||
resizeMode?: 'cover' | 'contain';
|
||||
/**
|
||||
|
Reference in New Issue
Block a user