UNPKG

react-native-filament

Version:

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

21 lines 1.05 kB
import React, { PropsWithChildren } from 'react'; import { BufferSource } from '../hooks/useBuffer'; import { ModelProps as UseModelProps } from '../hooks/useModel'; type ModelProps = UseModelProps & { source: BufferSource; /** * Transforms the given entity to fit into a unit cube (1,1,1) at the origin (0,0,0). * @param entity The entity to transform */ transformToUnitCube?: boolean; }; /** * Loads a model from the given source. * * * If you are passing in a `.glb` model or similar from your app's bundle using `require(..)`, make sure to add `glb` as an asset extension to `metro.config.js`! * If you are passing in a `{ url: ... }`, make sure the URL points directly to a `.glb` model. This can either be a web URL (`http://..`/`https://..`), a local file (`file://..`), or an native asset path (`path/to/asset.glb`) */ export declare function Model({ children, source, transformToUnitCube, ...modelProps }: PropsWithChildren<ModelProps>): React.JSX.Element | null; export {}; //# sourceMappingURL=Model.d.ts.map