Giter Site home page Giter Site logo

dylancom / react-native-is-screen-captured-ios Goto Github PK

View Code? Open in Web Editor NEW
22.0 22.0 1.0 398 KB

Detect if the system is recording, mirroring, or using AirPlay to stream the contents of the screen.

License: MIT License

Java 47.47% JavaScript 8.48% TypeScript 9.51% Swift 0.41% C 0.59% Objective-C 26.40% Ruby 7.14%
airplay mirroring react-native recording replaykit

react-native-is-screen-captured-ios's People

Contributors

dylancom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

iamvirul

react-native-is-screen-captured-ios's Issues

called 2 times

Hi, i saw isCaptured == true called 2 times inside useeffect, can u help?

error when running app on Android

I saw this log on my app start:

Possible Unhandled Promise Rejection (id: 0):
TypeError: undefined is not a function
TypeError: undefined is not a function
    at ?anon_0_ (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.vedaxlink&modulesOnly=false&runModule=true:285387:73)
    at next (native)
    at asyncGeneratorStep (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.vedaxlink&modulesOnly=false&runModule=true:1277:26)
    at _next (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.vedaxlink&modulesOnly=false&runModule=true:1296:29)
    at anonymous (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.vedaxlink&modulesOnly=false&runModule=true:1301:14)
    at tryCallTwo (/root/react-native/ReactAndroid/hermes-engine/.cxx/Release/2q6r403w/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:61:9)
    at doResolve (/root/react-native/ReactAndroid/hermes-engine/.cxx/Release/2q6r403w/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:216:25)
    at Promise (/root/react-native/ReactAndroid/hermes-engine/.cxx/Release/2q6r403w/arm64-v8a/lib/InternalBytecode/InternalBytecode.js:82:14)
    at anonymous (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.vedaxlink&modulesOnly=false&runModule=true:1293:25)
    at apply (native)
    at _setInitialState (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.vedaxlink&modulesOnly=false&runModule=true:285390:38)
    at apply (native)
    at setInitialState (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.vedaxlink&modulesOnly=false&runModule=true:285383:38)
    at anonymous (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.vedaxlink&modulesOnly=false&runModule=true:285392:22)
    at commitHookEffectListMount (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.vedaxlink&modulesOnly=false&runModule=true:71926:38)
    at commitPassiveMountOnFiber (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.vedaxlink&modulesOnly=false&runModule=true:72952:44)
    at commitPassiveMountEffects_complete (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.vedaxlink&modulesOnly=false&runModule=true:72924:40)
    at commitPassiveMountEffects_begin (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.vedaxlink&modulesOnly=false&runModule=true:72914:47)
    at commitPassiveMountEffects (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.vedaxlink&modulesOnly=false&runModule=true:72904:40)
    at flushPassiveEffectsImpl (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.vedaxlink&modulesOnly=false&runModule=true:74098:34)
    at flushPassiveEffects (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.vedaxlink&modulesOnly=false&runModule=true:74058:43)
    at performSyncWorkOnRoot (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.vedaxlink&modulesOnly=false&runModule=true:73547:28)
    at flushSyncCallbacks (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.vedaxlink&modulesOnly=false&runModule=true:64928:36)
    at flushSyncCallbacksOnlyInLegacyMode (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.vedaxlink&modulesOnly=false&runModule=true:64913:29)
    at batchedUpdates$1 (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.vedaxlink&modulesOnly=false&runModule=true:73587:47)
    at batchedUpdates (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.vedaxlink&modulesOnly=false&runModule=true:62923:36)
    at _receiveRootNodeIDEvent (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.vedaxlink&modulesOnly=false&runModule=true:62991:23)
    at receiveEvent (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.vedaxlink&modulesOnly=false&runModule=true:63014:32)
    at apply (native)
    at __callFunction (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.vedaxlink&modulesOnly=false&runModule=true:4818:36)
    at anonymous (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.vedaxlink&modulesOnly=false&runModule=true:4579:31)
    at __guard (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.vedaxlink&modulesOnly=false&runModule=true:4769:15)
    at callFunctionReturnFlushedQueue (http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.vedaxlink&modulesOnly=false&runModule=true:4578:21)

After open the localhost log, navigate to line 285387, I saw this:
Screenshot 2023-07-10 at 11 20 09

Can u fixed this?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.