react-native-filament
Version:
A real-time physically based 3D rendering engine for React Native
10 lines • 427 B
JavaScript
import React from 'react';
export const FilamentContext = /*#__PURE__*/React.createContext(undefined);
export function useFilamentContext() {
const context = React.useContext(FilamentContext);
if (context === undefined) {
throw new Error('You tried to use a Filament hook/component without wrapping your component in a <FilamentScene> component!');
}
return context;
}
//# sourceMappingURL=useFilamentContext.js.map