Name Date Size #Lines LOC

..26-Sep-2023-

android/H26-Sep-2023-517400

build/H26-Sep-2023-20668

ios/H26-Sep-2023-152115

src/H26-Sep-2023-323192

.eslintrc.jsH A D26-Sep-2023103 31

.npmignoreH A D26-Sep-2023183 128

CHANGELOG.mdH A D26-Sep-20234.5 KiB14372

README.mdH A D26-Sep-20231.7 KiB4123

babel.config.jsH A D26-Sep-2023107 76

expo-module.config.jsonH A D26-Sep-2023164 87

package.jsonH A D26-Sep-20231 KiB4342

tsconfig.jsonH A D26-Sep-2023217 109

README.md

1# expo-screen-capture
2
3**`expo-screen-capture`** allows you to protect screens in your app from being captured or recorded, as well as be notified if a screenshot is taken while your app is foregrounded. The two most common reasons you may want to prevent screen capture are:
4
5- If a screen is displaying sensitive information (password, credit card data, etc.)
6- You are displaying paid content that you don't want recorded and shared
7
8This is especially important on Android, since the [`android.media.projection`](https://developer.android.com/about/versions/android-5.0.html#ScreenCapture) API allows third-party apps to perform screen capture or screen sharing (even if the app is backgrounded).
9
10> Currently, taking screenshots on iOS cannot be prevented. This is due to underlying OS limitations.
11
12## API documentation
13
14## Installation in managed Expo projects
15
16For [managed](https://docs.expo.dev/archive/managed-vs-bare/) Expo projects, please follow the installation instructions in the [API documentation for the latest stable release](https://docs.expo.dev/versions/latest/sdk/screen-capture/).
17
18## Installation in bare React Native projects
19
20For bare React Native projects, you must ensure that you have [installed and configured the `expo` package](https://docs.expo.dev/bare/installing-expo-modules/) before continuing.
21
22### Add the package to your npm dependencies
23
24```
25npx expo install expo-screen-capture
26```
27
28### Configure for iOS
29
30```
31npx pod-install
32```
33
34### Configure for Android
35
36No extra configuration necessary
37
38## Contributing
39
40Contributions are very welcome! Please refer to guidelines described in the [contributing guide](https://github.com/expo/expo#contributing).
41