UNPKG

@osobh/reactar

Version:

AR Library for React Native and Expo

24 lines (23 loc) 665 B
import { Camera } from 'expo-camera'; import * as GL from 'expo-gl'; import React from 'react'; interface State { zoom: number; type: any; } declare class GLCameraScreen extends React.Component<{}, State> { static title: string; readonly state: State; _rafID?: number; camera?: Camera; glView?: GL.GLView; texture?: WebGLTexture; componentWillUnmount(): void; createCameraTexture(): Promise<WebGLTexture>; onContextCreate: (gl: GL.ExpoWebGLRenderingContext) => Promise<void>; toggleFacing: () => void; zoomOut: () => void; zoomIn: () => void; render(): React.JSX.Element; } export default GLCameraScreen;