const sayHello = useRunOnJS((name: string) => {
console.log(`Hello ${name}, I am running on the JS Thread!`);
}, []);
And then
const frameProcessor = useFrameProcessor(
async (frame) => {
'worklet';
sayHello('Matheus');
})