This is really important when you communicate with family, colleagues, or close friends on the internet, you have to be sure that sensitive information won't be copied and re-shared with someone else. Popular applications like Instagram, Snapchat long ago implemented this simple feature: screenshot detection.
How things are in the react-native ecosystem? For current moment I found three modules that compatible with latest version of email@example.com (see below)
|react-native-detector||✅||✅||Quality: 50%; Popularity: 8%; Maintenance: 55%|
|expo-screen-capture||✅||✅||Quality: 95%; Popularity: 26%; Maintenance: 99%|
|react-native-screenshot-notifier||❌||✅||Quality: 51%; Popularity: 3%; Maintenance: 16%|
|react-native-screenshot-detect||✅||❌||Quality: 20%; Popularity: 2%; Maintenance: 4%|
⚠️ Note: Both modules has one limitation on Android, that required a
For Android to understand that screenshot was taken modules use
ContentObserver, to listen that a picture file was created and filename includes
if you have any question I am glad to discuss them in the comments!
(c) MurAmur ❤️