GLCanvas.captureFrame.ios.js 424 Bytes
Newer Older
1 2
import invariant from "invariant";
import React from "react-native";
3 4 5 6 7 8 9 10 11 12
const {
  NativeModules: { GLCanvasManager }
} = React;
invariant(GLCanvasManager,
`gl-react-native: the native module is not available.
Make sure you have properly configured it.
See README install instructions.

React.NativeModules.GLCanvasManager is %s`, GLCanvasManager);

13
module.exports = (handle, config) => GLCanvasManager.capture(handle, config);