Initialize Schnappix Photo Booth application with custom UVC camera, silent Wi-Fi IPP printing, local gallery storage, and kiosk screen pinning support
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import { requireNativeViewManager } from 'expo-modules-core';
|
||||
import * as React from 'react';
|
||||
import { ViewProps, Platform } from 'react-native';
|
||||
|
||||
const viewName = 'UsbCamera';
|
||||
|
||||
export interface UsbCameraViewProps extends ViewProps {
|
||||
// Add props here if we decide to pass them from JS
|
||||
}
|
||||
|
||||
export interface UsbCameraRef {
|
||||
takePicture(savePath: string): Promise<string>;
|
||||
isCameraConnected(): Promise<boolean>;
|
||||
}
|
||||
|
||||
// Export the native view manager component
|
||||
export const UsbCameraView: React.ComponentType<UsbCameraViewProps & { ref?: React.RefObject<any> }> =
|
||||
Platform.OS === 'android'
|
||||
? requireNativeViewManager(viewName)
|
||||
: (() => null) as any;
|
||||
Reference in New Issue
Block a user