blend / react-native-screenshot-detector Goto Github PK
View Code? Open in Web Editor NEWScreenshot detection in React Native (iOS only)
License: MIT License
Screenshot detection in React Native (iOS only)
License: MIT License
I'm on React Native 0.61.5, which uses autolinking.
I've followed the installation instructions and when I build I get:
'React/RCTEventEmitter.h' file not found
from RNScreenshotDetector.h
I've tried adding the React
Pod headers to Header Search Paths
and that still didn't work. Any other ideas of things I can try?
I can't really figure out how to get this to work on ios. Taking screenshot does nothing. Is this correct? cc/ @gcarling
componentDidMount() {
console.log('RNScreenshotDetector',RNScreenshotDetector);
RNScreenshotDetector.subscribe(function(){
alert('screenshot taken!')
console.log('SUBSCRIBE');
});
}
react-native-screenshot-detector isn't available on npm, so $ npm install react-native-screenshot-detector --save
doesn't seem to work. There is a way to add it to package.json as "react-native-screenshot-detector": "git://github.com:blendlabs/react-native-screenshot-detector.git"
, but installing a package would be more convenient and robust (in terms of further updates).
Hello there, can I test it on a simulator?
Apparently, I cannot, it doesn't detect the Screenshot.
Thank you.
ScreenshotDetector.subscribe(() => {
Alert.alert('Screenshot detected!');
});
There is no response.
react-native version 0.43
Can I handle the screenshot data?
posting an issue here as there was no issues section on the forked lib @iamacup/react-native-screenshot-detect
This lib works great on debug configuration, but for release configuration, detection does not work.
Is it possible to get it working for release config as well?
rn 0.62.2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.