{"id":22666517,"url":"https://github.com/douugdev/react-native-proximity-screen","last_synced_at":"2026-05-01T08:32:26.187Z","repository":{"id":57339263,"uuid":"378233639","full_name":"douugdev/react-native-proximity-screen","owner":"douugdev","description":"An Android-only simple library to turn off screen on proximity.","archived":false,"fork":false,"pushed_at":"2021-06-20T16:06:08.000Z","size":375,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-24T04:16:14.436Z","etag":null,"topics":["android","react","react-native"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/douugdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-06-18T18:21:27.000Z","updated_at":"2023-03-06T07:52:44.000Z","dependencies_parsed_at":"2022-09-02T00:13:11.984Z","dependency_job_id":null,"html_url":"https://github.com/douugdev/react-native-proximity-screen","commit_stats":null,"previous_names":["douugbr/react-native-proximity-screen"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/douugdev/react-native-proximity-screen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/douugdev%2Freact-native-proximity-screen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/douugdev%2Freact-native-proximity-screen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/douugdev%2Freact-native-proximity-screen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/douugdev%2Freact-native-proximity-screen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/douugdev","download_url":"https://codeload.github.com/douugdev/react-native-proximity-screen/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/douugdev%2Freact-native-proximity-screen/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32490810,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["android","react","react-native"],"created_at":"2024-12-09T14:15:11.182Z","updated_at":"2026-05-01T08:32:26.169Z","avatar_url":"https://github.com/douugdev.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-proximity-screen\n\nA JS/TS Library to programatically turn the screen off using the proximity sensor.\n\n## Installation\n\n```sh\nnpm install react-native-proximity-screen\n\n# For older RN versions\nreact-native link react-native-proximity-screen\n```\n\n## Basic Usage\n\n```js\nimport { startProximity, stopProximity } from 'react-native-proximity-screen';\nimport { useState, useEffect } from 'react';\n\n// ...\n\nuseEffect(() =\u003e {\n  if (incall) {\n    startProximity();\n  } else {\n    stopProximity();\n  }\n}, []);\n```\n\n## Docs\n\n#### _async startProximity(void)_\n\n#### _async stopProximity(void)_\n\n## Contributing\n\nSee the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.\n\n## Special Thanks\n\n- [Javier González](https://github.com/CabezasGonzalezJavier) for the android base.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdouugdev%2Freact-native-proximity-screen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdouugdev%2Freact-native-proximity-screen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdouugdev%2Freact-native-proximity-screen/lists"}