03b9246afe
* Adds KTLint as a GitHub action * Adds KTLint to the gradle project for IDE integration * Adds .editorconfig to configure KTLint (android/) |
||
---|---|---|
.github | ||
.vscode | ||
android | ||
docs | ||
example | ||
img | ||
ios | ||
scripts | ||
src | ||
.eslintrc.js | ||
.gitignore | ||
.prettierrc.js | ||
babel.config.js | ||
CONTRIBUTING.md | ||
LICENSE | ||
package.json | ||
react-native-vision-camera.podspec | ||
README.md | ||
tsconfig.build.json | ||
tsconfig.json | ||
yarn.lock |
README | SETUP | DEVICES | FORMATS | FRAME_PROCESSORS | ANIMATED | ERRORS |
---|
Camera
Install
npm i react-native-vision-camera@alpha
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
return (
<Camera
style={StyleSheet.absoluteFill}
device={device}
isActive={true}
/>
)
}