Gyri Native AppCamera
Properties of AppCamera:
| # | props | Is required | Default | Details |
|---|---|---|---|---|
| 1 | fullScreen | false | While uploading media it's used to display media on full screen | |
| 2 | enableVideoCapture | false | Used to capture videos on camera. | |
| 3 | showLibraryPicker | true | Used to select images to upload on profile. | |
| 4 | showFlipCamera | true | Used to flip between front and rear camera. | |
| 5 | showFlash | false | Used to flash while capturing a photo. | |
| 6 | showFps | false | Used to show frame rate of the screen. | |
| 7 | showHdr | false | Used to enhance display quality. | |
| 8 | showNightMode | false | Used to look screen dark. | |
| 9 | showMediaActionIcons | true | To show upload, retake and edit icons. | |
| 10 | mediaCancelText | Retake | After media capture, cancel or retake button text | |
| 11 | mediaUploadText | Use this | After media capture, use media action button text | |
| 12 | mediaUploadAction | Yes | When we select image mediaUploadAction gets triggered and media is uploaded | |
| 13 | onCancel | To render cancel button and action to take | ||
| 14 | compressMedia | false | Used to reduce/compress the size of profile photo. | |
| 15 | compressionQuality | 0.8 | Used 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 | |
| 16 | imageEditor | true | To show image editor to crop or rotate image. | |
| 17 | tailwindConfig | Yes | Colors to use in the library. This is nativewind's (tailwind) config. |
Example ImageCompression
Original file size: 1.1 MB
| CompressionQuality | Sizes |
|---|---|
| 0.0 | 16kb |
| 0.4 | 93kb |
| 0.7 | 143kb |
| 0.8 | 176kb |
| 0.9 | 249kb |
| 1.0 | 707kb |