UNPKG

react-native-filament

Version:

A real-time physically based 3D rendering engine for React Native

14 lines 792 B
import { PropsWithChildren } from 'react'; import { EngineProps } from '../hooks/useEngine'; import React from 'react'; import { RendererConfigProps, ViewConfigProps } from './Configurator'; export type FilamentProviderProps = PropsWithChildren<Omit<EngineProps, 'context'> & ViewConfigProps & RendererConfigProps & { fallback?: React.ReactElement; }>; /** * Creates an engine and all filament APIs and provides them to the children using the react context. * * @note You only need this for doing offscreen recording. For an on-screen surface use the `Filament` component. */ export declare function FilamentContext({ children, fallback, config, backend, frameRateOptions, ...viewProps }: FilamentProviderProps): React.JSX.Element | null; //# sourceMappingURL=FilamentContext.d.ts.map