{"id":22887271,"url":"https://github.com/appandflow/expo-camera-characteristics","last_synced_at":"2026-03-01T05:02:57.188Z","repository":{"id":164577080,"uuid":"628079184","full_name":"AppAndFlow/expo-camera-characteristics","owner":"AppAndFlow","description":"This library exposes the rear camera's characteristics such as the sensor size, the focal length and the image resolution.","archived":false,"fork":false,"pushed_at":"2025-01-08T16:00:03.000Z","size":1245,"stargazers_count":5,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-05-07T11:15:07.695Z","etag":null,"topics":["camera","expo","react-native"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@appandflow/expo-camera-characteristics?activeTab=readme","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AppAndFlow.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-14T21:34:53.000Z","updated_at":"2025-01-08T16:00:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"17903be1-b028-4f59-a65f-e5c2fff39a0a","html_url":"https://github.com/AppAndFlow/expo-camera-characteristics","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AppAndFlow%2Fexpo-camera-characteristics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AppAndFlow%2Fexpo-camera-characteristics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AppAndFlow%2Fexpo-camera-characteristics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AppAndFlow%2Fexpo-camera-characteristics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AppAndFlow","download_url":"https://codeload.github.com/AppAndFlow/expo-camera-characteristics/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252865706,"owners_count":21816309,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["camera","expo","react-native"],"created_at":"2024-12-13T20:32:13.395Z","updated_at":"2026-03-01T05:02:52.143Z","avatar_url":"https://github.com/AppAndFlow.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"![camera](https://github.com/user-attachments/assets/5db566c2-fdec-446f-a366-b74798f94f54)\n\n### About\nApp \u0026 Flow is a Montreal-based React Native engineering and consulting studio. We partner with the world’s top companies and are recommended by [Expo](https://expo.dev/consultants). Need a hand? Let’s build together. team@appandflow.com\n\n\n[![npm (scoped)](https://img.shields.io/npm/v/@appandflow/expo-camera-characteristics.svg)](https://www.npmjs.com/package/@appandflow/expo-camera-characteristics)\n\nThis library exposes the rear camera's characteristics such as the sensor size, the focal length and the image resolution.\n\n**On Android**, the Camera2 module is used to get the camera characteristics programmatically.\n\n**On iOS**, there is no accessible module to do so (see https://stackoverflow.com/questions/13190932/how-to-find-out-focal-length-of-camera-in-ios-and-what-is-the-sensor-height for the existing work around), therefore, the values returned by this library are hardcoded here: https://github.com/AppAndFlow/expo-camera-characteristics/blob/main/src/iPhoneSpecs.ts. We'll try to maintain that list of devices up to date as much as possible.\n\n# Installation\n\nFor Expo SDK \u003c= 48 use \u003c= `expo-camera-characteristics 1.0.0`\n\nThis library needs `expo-device` for iOS.\n\n```\nnpx expo install @appandflow/expo-camera-characteristics expo-device\n```\n\n\u003e This package cannot be used in the \"Expo Go\" app because [it requires custom native code](https://docs.expo.dev/workflow/customizing/).\n\nAfter installing this npm package, add the [config plugin](https://docs.expo.dev/config-plugins/introduction/) to the [`plugins`](https://docs.expo.dev/versions/latest/config/app/#plugins) array of your `app.json` or `app.config.js`:\n\n```JSON\n{\n  \"expo\": {\n    \"plugins\": [[\"@appandflow/expo-camera-characteristics\", {}]]\n  }\n}\n\n```\n\nAnd finally, rebuild your app as described in the [\"Adding custom native code\"](https://docs.expo.dev/workflow/customizing/) guide.\n\n```\nnpx expo prebuild\n```\n\n# API documentation\n\n## getCameraCharacteristics()\n\n```TS\nimport * as expoCameraCharacteristics from \"@appandflow/expo-camera-characteristics\";\n\nconst cameraCharacteristics: {\n  focalLength: number;\n  sensorSize: {\n    height: number;\n    width: number;\n  };\n  imageResolution: {\n    height: number;\n    width: number;\n  };\n} = expoCameraCharacteristics.getCameraCharacteristics();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappandflow%2Fexpo-camera-characteristics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fappandflow%2Fexpo-camera-characteristics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappandflow%2Fexpo-camera-characteristics/lists"}