1.2.0 • Published 1 year ago

react-native-prevent-recent-screenshots v1.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

React Native Prevent Recent Screenshots

This is an expo module which will prevent screenshots being taken when the application is backgrounded.

Installation

  1. Install yarn install react-native-prevent-recent-screenshots
  2. Run expo prebuild npx expo prebuild

Usage

  • Add the plugin to your app config. These are defaulted to false.
[
  'react-native-prevent-recent-screenshots',
  {
    ios: {
      enabled?: boolean
    },
    android?: {
      enabled?: boolean
    },
  },
],

To programatically configure hiding the splashscreen on iOS:

  • iOS, import import PreventRecentScreenshots from "react-native-prevent-recent-screenshots";, call shouldPreventRecentScreenshot(true | false) whenever this functionality needs to be disabled. The default behavior is set to true.
1.2.0

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.1.0

1 year ago