| Name | Date | Size | #Lines | LOC | ||
|---|---|---|---|---|---|---|
| .. | 26-Sep-2023 | - | ||||
| android/ | H | 26-Sep-2023 | - | 517 | 400 | |
| build/ | H | 26-Sep-2023 | - | 206 | 68 | |
| ios/ | H | 26-Sep-2023 | - | 152 | 115 | |
| src/ | H | 26-Sep-2023 | - | 323 | 192 | |
| .eslintrc.js | H A D | 26-Sep-2023 | 103 | 3 | 1 | |
| .npmignore | H A D | 26-Sep-2023 | 183 | 12 | 8 | |
| CHANGELOG.md | H A D | 26-Sep-2023 | 4.5 KiB | 143 | 72 | |
| README.md | H A D | 26-Sep-2023 | 1.7 KiB | 41 | 23 | |
| babel.config.js | H A D | 26-Sep-2023 | 107 | 7 | 6 | |
| expo-module.config.json | H A D | 26-Sep-2023 | 164 | 8 | 7 | |
| package.json | H A D | 26-Sep-2023 | 1 KiB | 43 | 42 | |
| tsconfig.json | H A D | 26-Sep-2023 | 217 | 10 | 9 |
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