Shopify / react-native-skia

High-performance React Native Graphics using Skia

Home Page:https://shopify.github.io/react-native-skia

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

the new useClock doesn't update

alibenmlah opened this issue · comments

hello , thanks for the good work and this amazing module ;
after the new update of the module useClockValue has been removed and also useComputedValue , so the old solutions to make iTime on react-native-skia are useless
I tried useDerivedValue
const t = useClock()
const clock = useDerivedValue(()=>{ return t.value },[t.value])
<Shader source={source} uniforms={{clock:clock.value}} />
doesn't update

try

const t = useClock();
const uniforms = useDerivedValue(()=> ({ clock: t.value }), [t]);
<Shader source={source} uniforms={uniforms}  />

also don't udpade thanks anyway nikitaDudin for responding , i closed the issue because i am not interseted about rn-skia any more i will use expo-gl because skia shading language lack's documentation it's assumes you already have experience with shaders at the same time it's deffirente from openGL without clearing how to deal with those differences