Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could we use skottie inside rn-skia canvas #6

Open
swami-laxman opened this issue Jan 19, 2024 · 3 comments
Open

Could we use skottie inside rn-skia canvas #6

swami-laxman opened this issue Jan 19, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@swami-laxman
Copy link

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?

@hannojg
Copy link
Member

hannojg commented Jan 19, 2024

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

@hannojg hannojg added the enhancement New feature or request label Jan 19, 2024
@swami-laxman swami-laxman changed the title Can we use skottie inside rn-skia canvas Could we use skottie inside rn-skia canvas Jan 19, 2024
@thecynicalpaul
Copy link

+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?

@hannojg
Copy link
Member

hannojg commented Jan 22, 2025

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants