All Projects → LewinJun → react-native-lewin-screen-capture

LewinJun / react-native-lewin-screen-capture

Licence: other
获取系统截屏事件 react native

Programming Languages

objective c
16641 projects - #2 most used programming language
java
68154 projects - #9 most used programming language
javascript
184084 projects - #8 most used programming language
Starlark
911 projects
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to react-native-lewin-screen-capture

React Native Directed Scrollview
UNMAINTAINED- see below. A natively implemented scrollview component which lets you specify different scroll directions for child content.
Stars: ✭ 139 (+595%)
Mutual labels:  reactnative
Style Sheet
⚡️💨 Fast styles in JavaScript with support for static CSS extraction.
Stars: ✭ 229 (+1045%)
Mutual labels:  reactnative
photos
"Fx Fotos" is an opensource gallery app in react native with the same smoothness and features of Google Photos and Apple Photos. It is backend gnostic and connects to decentralized backends like "box", "Dfinity", "Filecoin" and "Crust".
Stars: ✭ 620 (+3000%)
Mutual labels:  reactnative
React Native Input Spinner
An extensible input number spinner component for react-native highly customizable. This component enhance a text input for entering numeric values, with increase and decrease buttons.
Stars: ✭ 155 (+675%)
Mutual labels:  reactnative
Flyabbit
🔥组件化,Retrofit,Rxjava2,dagger2,Mvp ,ReactNative ,Atlas(插件化)
Stars: ✭ 219 (+995%)
Mutual labels:  reactnative
React Native Opencv Tutorial
👩‍🏫Fully working example of the OpenCV library used together with React Native
Stars: ✭ 244 (+1120%)
Mutual labels:  reactnative
React Native Animations
React Native Animations
Stars: ✭ 115 (+475%)
Mutual labels:  reactnative
react-native-bottom-bar
Fully customizable BottomBar with unique design shape for React Native.
Stars: ✭ 74 (+270%)
Mutual labels:  reactnative
Fundamentals Materials
React Native Training - Materials Example App
Stars: ✭ 219 (+995%)
Mutual labels:  reactnative
reactXstarter
React + Redux + React Native Starter Kit with reusable business logic. Sample TODO app built in.
Stars: ✭ 42 (+110%)
Mutual labels:  reactnative
React Native Image Marker
Add text or icon watermark to your images
Stars: ✭ 170 (+750%)
Mutual labels:  reactnative
Comicbook
React-Native跨平台漫画App免费视频:http://www.kongyixueyuan.com/course/3528
Stars: ✭ 199 (+895%)
Mutual labels:  reactnative
react-native-animated-screen
React Native Animated Screens made easy
Stars: ✭ 28 (+40%)
Mutual labels:  reactnative
React Native Offline
Handy toolbelt to deal nicely with offline/online connectivity in a React Native app. Smooth redux integration ✈️
Stars: ✭ 2,000 (+9900%)
Mutual labels:  reactnative
expo-push-notification-helper
💬🔥This package helps you make expo push notification for React Native easy to use.
Stars: ✭ 32 (+60%)
Mutual labels:  reactnative
React Native Navigation Animation
Transition navigation component for React Native
Stars: ✭ 133 (+565%)
Mutual labels:  reactnative
Galio
Galio is a beautifully designed, Free and Open Source React Native Framework
Stars: ✭ 2,772 (+13760%)
Mutual labels:  reactnative
hackerweb-native-2
HackerWeb 2: A read-only Hacker News client.
Stars: ✭ 51 (+155%)
Mutual labels:  reactnative
RNAndroidPullToRefresh
React Native 封装基于 Ultra-Pull-To-Refresh 的下拉刷新控件
Stars: ✭ 17 (-15%)
Mutual labels:  reactnative
finclip-react-native-demo
FinClip RN 运行环境,让小程序在 RN 应用中无缝运行 / ReactNative DEMO for FinClip
Stars: ✭ 36 (+80%)
Mutual labels:  reactnative

react-native-lewin-screen-capture

react-native 获取系统截屏通知并获取图片/截取当前屏幕

Table of contents

Install

1: yarn add 或者npm install,现在最新版本是1.1.0 支持0.6X版本 androidx

yarn add react-native-lewin-screen-capture

2: yarn install 或 npm install

3: react-native link react-native-lewin-screen-capture

Usage

NOTE: 可以参考Example的App.js中的方法

import ScreenCaptureUtil from 'react-native-lewin-screen-capture'

// 开始监听
ScreenCaptureUtil.startListener(res=>{
            console.log(res)
            // this.setState({uri:'data:image/png;base64,' + res.base64})
            this.setState({uri: res.uri})
          }, '截屏,screen')
// 停止监听
ScreenCaptureUtil.stopListener()
// 截取当前屏幕
ScreenCaptureUtil.screenCapture((res)=>{
            console.log(res)
            this.setState({uri: res.uri})
          })
// 清理缓存
ScreenCaptureUtil.clearCache()
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].