likern / react-native-vision-camera

๐Ÿ“ธ The Camera library that sees the vision.

Home Page:https://cuvent.github.io/react-native-vision-camera/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vision Camera



๐Ÿ“ธ The Camera library that sees the vision.






Documentation

Install

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

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!

About

๐Ÿ“ธ The Camera library that sees the vision.

https://cuvent.github.io/react-native-vision-camera/

License:MIT License


Languages

Language:TypeScript 38.3%Language:Swift 28.2%Language:Kotlin 26.6%Language:Java 2.4%Language:Objective-C 2.3%Language:JavaScript 1.6%Language:Ruby 0.5%Language:C 0.0%