0.2.8 • Published 11 months ago

@jaswinda/react-native-uvc-camera v0.2.8

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

react-native-uvc-camera

UVC Camera component for Reat Native.

Works only on Android!

This is a wrapper for the UVCAndroid library.

Installation

npm install @jaswinda/react-native-uvc-camera

Usage

import { UVCCamera } from "@jaswinda/react-native-uvc-camera";

// ...
const camera = useRef<UVCCamera>(null);

<UVCCamera ref={camera} style={styles.cameraView} />

const styles = StyleSheet.create({
  cameraView: {
    width: 200,
    height: 200,
  },
});

Take photo

const photo = await camera.current?.takePhoto();

R8 / ProGuard

If you are using R8 the shrinking and obfuscation rules are included automatically.

ProGuard users must manually add the below options.

-keep class com.herohan.uvcapp.** { *; }
-keep class com.serenegiant.usb.** { *; }
-keepclassmembers class * implements com.serenegiant.usb.IButtonCallback {*;}
-keepclassmembers class * implements com.serenegiant.usb.IFrameCallback {*;}
-keepclassmembers class * implements com.serenegiant.usb.IStatusCallback {*;}

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library

0.2.7

1 year ago

0.2.6

1 year ago

0.2.8

11 months ago

0.2.5

1 year ago

0.2.4

1 year ago

0.2.3

1 year ago

0.2.1

1 year ago

0.2.2

1 year ago

0.2.0

1 year ago

0.1.9

1 year ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago