I am trying to use the react-native-reanimated library in the clojurescript project. And for this library, I have to create worklets by adding the "worklet" directive at the top. ex:
function someWorklet(greeting) {
'worklet';
console.log("Hey I'm running on the UI thread");
}
How can I use same in the clojurescript, currently I have:
(defn someWorklet [greeting]
(js/console.log "Hey I'm running on the UI thread"))