react-native-vision-camera/README.md
2021-03-03 09:54:36 +01:00

2.1 KiB

README SETUP DEVICES FORMATS FRAME_PROCESSORS ANIMATED ERRORS

Camera



📸 The Camera library that sees the vision.






Install

npm i react-native-vision-camera
npx pod-install

See SETUP.md

Features

  • Photo and Video capture
  • Customizable device (ultra-wide-angle, wide-angle, telephoto and virtual multi-cameras)
  • Customizable FPS
  • JS worklet frame processors powered by JSI and Reanimated (WIP #2)
  • Reanimated zooming
  • HDR & Night modes

See the example app

Example

function App() {
  const devices = useCameraDevices('wide-angle-camera')
  const device = devices.back

  if (device == null) return <LoadingView />
  return (
    <Camera
      style={StyleSheet.absoluteFill}
      device={device}
      isActive={true}
    />
  )
}

🚀 Get started by setting up permissions!