{"id":24857386,"url":"https://github.com/blend/react-native-screenshot-detector","last_synced_at":"2025-10-15T03:30:21.720Z","repository":{"id":53429957,"uuid":"78785335","full_name":"blend/react-native-screenshot-detector","owner":"blend","description":"Screenshot detection in React Native (iOS only)","archived":false,"fork":false,"pushed_at":"2023-03-16T16:29:05.000Z","size":109,"stargazers_count":54,"open_issues_count":7,"forks_count":34,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-03-26T12:59:01.637Z","etag":null,"topics":["react-native","screenshot"],"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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blend.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-12T20:43:49.000Z","updated_at":"2024-01-31T12:05:54.000Z","dependencies_parsed_at":"2022-09-09T03:10:19.005Z","dependency_job_id":null,"html_url":"https://github.com/blend/react-native-screenshot-detector","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/blend%2Freact-native-screenshot-detector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blend%2Freact-native-screenshot-detector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blend%2Freact-native-screenshot-detector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blend%2Freact-native-screenshot-detector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blend","download_url":"https://codeload.github.com/blend/react-native-screenshot-detector/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236558797,"owners_count":19168518,"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":["react-native","screenshot"],"created_at":"2025-01-31T17:53:21.479Z","updated_at":"2025-10-15T03:30:16.348Z","avatar_url":"https://github.com/blend.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# react-native-screenshot-detector\n\nNote: this project is designed to work with the newer version of React Native library imports, i.e. React Native \u003e= 0.40.0\n\n## Getting started\n\n`$ npm install react-native-screenshot-detector --save`\n\n`$ react-native link react-native-screenshot-detector`\n\n\n## Usage\n\n# iOS\n```objectivec\n#import \u003cRNScreenshotDetector/RNScreenshotDetector.h\u003e\n\n- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions\n{\n  // ... setup code\n\n  // Somewhere React Native will have placed something like\n  RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL...]\n\n  // Somewhere below this you can setup the screenshot detector to listen for events\n  RNScreenshotDetector* screenshotDetector = [[RNScreenshotDetector alloc] init];\n  [screenshotDetector setupAndListen:rootView.bridge];\n}\n```\n\n# In JS\n```javascript\nimport * as ScreenshotDetector from 'react-native-screenshot-detector';\n\n// Subscribe callback to screenshots:\nthis.eventEmitter = ScreenshotDetector.subscribe(function() { ... });\n\n// Unsubscribe later (a good place would be componentWillUnmount)\nScreenshotDetector.unsubscribe(this.eventEmitter);\n```\n  ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblend%2Freact-native-screenshot-detector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblend%2Freact-native-screenshot-detector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblend%2Freact-native-screenshot-detector/lists"}