Skip to content

Delay in Skia Components Rendering While Mounting in RN v0.78.0 #3042

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

Open
1 task done
AjayFrancisTechversant opened this issue Mar 18, 2025 · 0 comments
Open
1 task done
Labels
bug Something isn't working

Comments

@AjayFrancisTechversant
Copy link

Description

There is a noticeable delay in rendering Skia components during the initial mount. In my project, I have a custom header that contains a LinearGradient from react-native-skia. However, this component takes some time to load, leaving an empty space in the header before it appears. This delay affects the user experience, making the app feel unresponsive.

This issue occurs in React Native v0.78.0 and skia v2.0.0-next.1.

Expected Behavior:
The Skia component should render immediately when the component mounts, avoiding the empty space in the header.

Actual Behavior:
The gradient takes a noticeable amount of time to appear, causing a blank header space momentarily.

Would love to hear if there's a recommended solution to avoid this delay. Thanks in advance! 🙌

React Native Skia Version

2.0.0-next.1

React Native Version

0.78.0

Using New Architecture

  • Enabled

Steps to Reproduce

1)Clone my sample repo https://github.com/AjayFrancisTechversant/NewArchdummy.
2)Run the app (focus on Android).
3)Click on "go to lists"
Observe the header on the first render—there is a blank space before the gradient appears.
**Please focus only on the skia component, ignore all other delays(eg: flashlist delay)

Snack, Code Example, Screenshot, or Link to Repository

checkout this dummy repo https://github.com/AjayFrancisTechversant/NewArchdummy

Screen_Recording_20250317-152828_NewArchdummy.mp4
@AjayFrancisTechversant AjayFrancisTechversant added the bug Something isn't working label Mar 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant