-
Notifications
You must be signed in to change notification settings - Fork 39
Description
(NOBRIDGE) ERROR Warning: TypeError: Cannot read property 'FilamentWorkletContext' of undefined
Error Detail:
(NOBRIDGE) ERROR Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'FilamentModule' could not be found. Verify that a module by this name is registered in the native binary. [Component Stack]
(NOBRIDGE) ERROR Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'FilamentModule' could not be found. Verify that a module by this name is registered in the native binary. [Component Stack]
(NOBRIDGE) ERROR Warning: TypeError: Cannot read property 'FilamentWorkletContext' of undefined
(NOBRIDGE) ERROR Warning: TypeError: Cannot read property 'FilamentWorkletContext' of undefined
Packages
"react-native": "0.76.3",
"react-native-reanimated": "^3.17.5",
"react-native-worklets-core": "^1.5.0",
"react-native-filament": "^1.6.1",
babel.config
module.exports={
presets: ['module:@react-native/babel-preset'],
plugins: [
[
'module-resolver',
],
["react-native-reanimated/plugin",{processNestedWorklets: true}],
[
'react-native-worklets-core/plugin',
{
processNestedWorklets: true,
},
],
],
};
page
import { FilamentScene, FilamentView, DefaultLight, Model, Camera } from "react-native-filament";
import MyModel from "./MyModel.glb";
function MyScene() {
return (
{/* ποΈ A view to draw the 3D content to */}
<FilamentView style={{ flex: 1 }}>
{/* π‘ A light source, otherwise the scene will be black */}
<DefaultLight />
{/* π¦ A 3D model */}
<Model source={MyModel} />
{/* πΉ A camera through which the scene is observed and projected onto the view */}
<Camera />
</FilamentView>
</FilamentScene>
);
}