react-native-capture-callback

## Getting started only ios

Usage no npm install needed!

<script type="module">
  import reactNativeCaptureCallback from 'https://cdn.skypack.dev/react-native-capture-callback';
</script>

README

react-native-capture-callback

Getting started

only ios

$ npm install react-native-capture-callback --save

$ pod install

Usage

import RNCaptureCallback from 'react-native-capture-callback';

// TODO: What to do with the module?
useEffect(() => {
    const subscription = DeviceEventEmitter.addListener('ScreenshotObserver', (data) => {
      console.log(data);
    });
    RNCaptureCallback.addObserverScreenshot();
    return () => {
      subscription.remove();
    };
  }, []);