Socket
Socket
Sign inDemoInstall

react-native-screenshot-url

Package Overview
Dependencies
0
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-native-screenshot-url

detect system screenshot events and get the image uri by react native


Version published
Weekly downloads
11
decreased by-42.11%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

react-native-screenshot-url

npm version

Install

yarn add react-native-screenshot-url

Usage

import ScreenShotUtil, { CallbackInfo } from 'react-native-screenshot-url';

useEffect(() => {
    ScreenShotUtil.startListener((res: CallbackInfo) => {
        // android 权限请求后置 & 内置
        // ios 无需权限
        console.log('- startScreenShot uri=' + res.uri);
    }, '截屏,screen');

    return () => {
        ScreenShotUtil.stopListener();
    };
});

Features

  • support 22 - 32 permissions about images READ_EXTERNAL_STORAGE
  • support Android API level 33 permissions about images READ_MEDIA_IMAGES
  • startListener without permission
  • permission request is built-in before callback

Reference

Keywords

FAQs

Last updated on 28 Mar 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc