expo-screen-capture
ExpoScreenCapture standalone module
Last updated 2 months ago by tsapeta .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install expo-screen-capture 
SYNC missed versions from official npm registry.

expo-screen-capture

expo-screen-capture allows you to protect screens in your app from being captured or recorded. The two most common reasons you may want to prevent screen capture are:

  • If a screen is displaying sensitive information (password, credit card data, etc.)
  • You are displaying paid content that you don't want recorded and shared

This is especially important on Android, since the android.media.projection API allows third-party apps to perform screen capture or screen sharing (even if the app is backgrounded).

Currently, taking screenshots on iOS cannot be prevented. This is due to underlying OS limitations.

API documentation

Installation in managed Expo projects

For managed managed Expo projects, please follow the installation instructions in the API documentation for the latest stable release.

Installation in bare React Native projects

For bare React Native projects, you must ensure that you have installed and configured the react-native-unimodules package before continuing.

Add the package to your npm dependencies

expo install expo-screen-capture

Configure for iOS

npx pod-install

Configure for Android

No extra configuration necessary

Contributing

Contributions are very welcome! Please refer to guidelines described in the contributing guide.

Current Tags

  • 1.1.1                                ...           latest (2 months ago)

4 Versions

  • 1.1.1                                ...           2 months ago
  • 1.1.0                                ...           2 months ago
  • 1.0.1                                ...           5 months ago
  • 1.0.0                                ...           5 months ago

Copyright 2014 - 2017 © taobao.org |