I am not a react expert in no means at first but when I import the library it tells me this:
Android Bundled 33ms node_modules/expo-router/entry.js (1 module)
ERROR [Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'Worklets' could not be found. Verify that a module by this name is registered in the native binary.]
Code: godot.tsx
> 1 | import { RTNGodot, RTNGodotView, runOnGodotThread } from "@borndotcom/react-native-godot";
Here is the code that i used
import { RTNGodot, RTNGodotView, runOnGodotThread } from "@borndotcom/react-native-godot";
import * as FileSystem from 'expo-file-system/legacy';
function initGodot() {
runOnGodotThread(() => {
'worklet';
console.log("Initializing Godot");
if (Platform.OS === 'android') {
RTNGodot.createInstance([
"--verbose",
"--path", "/main",
"--rendering-driver", "opengl3",
"--rendering-method", "gl_compatibility",
"--display-driver", "embedded"
]);
} else {
RTNGodot.createInstance([
"--verbose",
"--main-pack", FileSystem.bundleDirectory + "main.pck",
"--rendering-driver", "opengl3",
"--rendering-method", "gl_compatibility",
"--display-driver", "embedded"
]);
}
})
}
export default function GodotScene() {
initGodot();
return (
<View>
<RTNGodotView />
</View>
);
}
The environment is Android 34 Pixel on Expo with openjdk-25
Could someone help me figure out what is the problem