How to use the expo-camera.Camera.Constants function in expo-camera

To help you get started, we’ve selected a few expo-camera 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 tensorflow / tfjs / tfjs-react-native / integration_rn59 / components / webcam / webcam_demo.tsx View on Github external
flipCamera() {
    const newState = this.state.cameraType === Camera.Constants.Type.back
          ? Camera.Constants.Type.front
          : Camera.Constants.Type.back;
    this.setState({
      cameraType: newState,
    });
  }
github akveo / kittenTricks / src / containers / layouts / messaging / chat2 / chat2FileSection.component.tsx View on Github external
private renderPhotoItem = (): React.ReactElement => {
    const { themedStyle } = this.props;

    return (
github tensorflow / tfjs / tfjs-react-native / integration_rn59 / components / webcam / webcam_demo.tsx View on Github external
flipCamera() {
    const newState = this.state.cameraType === Camera.Constants.Type.back
          ? Camera.Constants.Type.front
          : Camera.Constants.Type.back;
    this.setState({
      cameraType: newState,
    });
  }
github gre / gl-react / examples / expo-gl-react-camera-effects / src / GLCamera.js View on Github external
render() {
    const { position } = this.props;
    const type = Camera.Constants.Type[position];
    return (
       this.camera
        }}
      >
github expo / expo / apps / native-component-list / src / screens / GL / GLCameraScreen.tsx View on Github external
toggleFacing = () => {
    this.setState({
      type:
        this.state.type === Camera.Constants.Type.back
          ? Camera.Constants.Type.front
          : Camera.Constants.Type.back,
    });
  }
github expo / expo / apps / storybook / stories / Components / Camera.stories.js View on Github external
onPress={() => {
                  this.setState({
                    type:
                      this.state.type === Camera.Constants.Type.back
                        ? Camera.Constants.Type.front
                        : Camera.Constants.Type.back,
                  });
                }}>
github dodie / tracing-paper-sketching / Camera.js View on Github external
const Camera = ({ children }, ref) => (
  
);
github digidem / mapeo-mobile / src / frontend / sharedComponents / CameraView.js View on Github external
render() {
    const { takingPicture } = this.state;
    return (
      
    );
  }
}

expo-camera

A React component that renders a preview for the device's either front or back camera. Camera's parameters like zoom, auto focus, white balance and flash mode are adjustable. With expo-camera, one can also take photos and record videos that are saved to t

MIT
Latest version published 2 months ago

Package Health Score

92 / 100
Full package analysis