Skip to main content

Gyri Native AppCamera

Properties of AppCamera:

#propsIs requiredDefaultDetails
1fullScreenfalseWhile uploading media it's used to display media on full screen
2enableVideoCapturefalseUsed to capture videos on camera.
3showLibraryPickertrueUsed to select images to upload on profile.
4showFlipCameratrueUsed to flip between front and rear camera.
5showFlashfalseUsed to flash while capturing a photo.
6showFpsfalseUsed to show frame rate of the screen.
7showHdrfalseUsed to enhance display quality.
8showNightModefalseUsed to look screen dark.
9showMediaActionIconstrueTo show upload, retake and edit icons.
10mediaCancelTextRetakeAfter media capture, cancel or retake button text
11mediaUploadTextUse thisAfter media capture, use media action button text
12mediaUploadActionYesWhen we select image mediaUploadAction gets triggered and media is uploaded
13onCancelTo render cancel button and action to take
14compressMediafalseUsed to reduce/compress the size of profile photo.
15compressionQuality0.8Used to set the value of compression.
If compressMedia= 'true' then compressQuality works else compressQuality gets ignored.
compressionQuality should be given between 0.0 - 1.0
Example of ImageCompression
16imageEditortrueTo show image editor to crop or rotate image.
17tailwindConfigYesColors to use in the library. This is nativewind's (tailwind) config.

Example ImageCompression

Original file size: 1.1 MB

CompressionQualitySizes
0.016kb
0.493kb
0.7143kb
0.8176kb
0.9249kb
1.0707kb