react-native-skottie icon indicating copy to clipboard operation
react-native-skottie copied to clipboard

Could we use skottie inside rn-skia canvas

Open swami-laxman opened this issue 2 years ago • 3 comments

I am exploring the use of react-native-skottie in a project. I'm interested in knowing if there's a possibility or future plans to integrate react-native-skottie within a react-native-skia Canvas.

something like this

<Canvas>
  <Skottie/>
  <OtherCanvasChildern/>
</Canvas>

This integration could enable combining Lottie animations with Skia's drawing capabilities, offering enhanced UI possibilities in React Native apps.

Is this a feasible enhancement for future releases?

swami-laxman avatar Jan 19 '24 02:01 swami-laxman

That could be possible yes. react-native-skia would need to add an API to register new node types 🤔 Will discuss this internally 😊

hannojg avatar Jan 19 '24 06:01 hannojg

+1 would love to see this. Is this something still being discussed a potential addition in the future, or has it become out of scope?

thecynicalpaul avatar Jan 21 '25 23:01 thecynicalpaul

I was trying yesterday to update scottie to be compatible with the latest RNSkia version and their internal Api has changed quite a bit. I think the only way to make this work is to use their Nodes API. So in a future version I suspect this will be the default way (ie. you'll have to create a Skottie Node in the Skia Canvas)

hannojg avatar Jan 22 '25 08:01 hannojg