{"id":22165597,"url":"https://github.com/textileio/react-native-screen-control","last_synced_at":"2025-07-26T11:32:10.933Z","repository":{"id":57165683,"uuid":"166468025","full_name":"textileio/react-native-screen-control","owner":"textileio","description":null,"archived":false,"fork":false,"pushed_at":"2019-01-21T17:03:28.000Z","size":295,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-03-03T04:04:54.521Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","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/textileio.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}},"created_at":"2019-01-18T20:23:14.000Z","updated_at":"2023-07-25T14:23:00.000Z","dependencies_parsed_at":"2022-08-30T18:31:43.405Z","dependency_job_id":null,"html_url":"https://github.com/textileio/react-native-screen-control","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/textileio%2Freact-native-screen-control","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/textileio%2Freact-native-screen-control/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/textileio%2Freact-native-screen-control/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/textileio%2Freact-native-screen-control/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/textileio","download_url":"https://codeload.github.com/textileio/react-native-screen-control/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227673973,"owners_count":17802303,"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":[],"created_at":"2024-12-02T05:15:42.523Z","updated_at":"2024-12-02T05:15:43.244Z","avatar_url":"https://github.com/textileio.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# react-native-screen-control\n\n## Getting started\n\n`$ npm install @textile/react-native-screen-control --save`\n\n### Mostly automatic installation\n\n`$ react-native link @textile/react-native-screen-control`\n\n### Manual installation\n\n\n#### iOS\n\n1. In XCode, in the project navigator, right click `Libraries` ➜ `Add Files to [your project's name]`\n2. Go to `node_modules` ➜ `@textile/react-native-screen-control` and add `RNScreenControl.xcodeproj`\n3. In XCode, in the project navigator, select your project. Add `libRNScreenControl.a` to your project's `Build Phases` ➜ `Link Binary With Libraries`\n4. Run your project (`Cmd+R`)\u003c\n\n#### Android\n\n1. Open up `android/app/src/main/java/[...]/MainActivity.java`\n  - Add `import io.textile.screencontrol.RNScreenControlPackage;` to the imports at the top of the file\n  - Add `new RNScreenControlPackage()` to the list returned by the `getPackages()` method\n2. Append the following lines to `android/settings.gradle`:\n  \t```\n  \tinclude ':react-native-screen-control'\n  \tproject(':react-native-screen-control').projectDir = new File(rootProject.projectDir, \t'../node_modules/react-native-screen-control/android')\n  \t```\n3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:\n  \t```\n      compile project(':react-native-screen-control')\n  \t```\n\n\n## Usage\n```javascript\nimport { keepScreenOn, letScreenSleep } from '@textile/react-native-screen-control'\n```\n  \n## Run Example\n\n```javascript\ncd example/\nyarn\nreact-native start\nreact-native run-ios\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftextileio%2Freact-native-screen-control","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftextileio%2Freact-native-screen-control","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftextileio%2Freact-native-screen-control/lists"}