0d717f0dbe
* Adds a "Build Android App" action that builds example/android (I think we can also just build android/, but this is just double safety) * Adds a "Build iOS App" action that builds example/ios (disabled for now as that is very expensive) |
||
---|---|---|
.github | ||
.vscode | ||
android | ||
docs | ||
example | ||
ios | ||
scripts | ||
src | ||
.eslintrc.js | ||
.gitignore | ||
.prettierrc.js | ||
babel.config.js | ||
CODE_OF_CONDUCT.md | ||
CONTRIBUTING.md | ||
LICENSE | ||
package.json | ||
react-native-vision-camera.podspec | ||
README.md | ||
tsconfig.build.json | ||
tsconfig.docs.json | ||
tsconfig.json | ||
yarn.lock |
Vision Camera
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 (Work in progress: #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}
/>
)
}