How to use jslib-html5-camera-photo - 1 common examples

To help you get started, we’ve selected a few jslib-html5-camera-photo examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github expo / expo / packages / expo-camera / src / Camera.js View on Github external
_setReference = (ref: ?Object) => {
    if (ref) {
      this._cameraRef = ref;
      if (Platform.OS === 'web') {
        this._cameraHandle = new LibCameraPhoto(this._cameraRef);
        this.resumePreview();
      } else {
        this._cameraHandle = findNodeHandle(ref);
      }
    } else {
      this._cameraRef = null;
      this._cameraHandle = null;
    }
  };

jslib-html5-camera-photo

js lib HTML5 Camera Photo

MIT
Latest version published 2 years ago

Package Health Score

53 / 100
Full package analysis

Popular jslib-html5-camera-photo functions