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

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

Open AjayFrancisTechversant opened this issue 9 months ago • 4 comments

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

  • [x] 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

https://github.com/user-attachments/assets/cc3927d9-2391-4e40-baf0-0d5ccb381930

AjayFrancisTechversant avatar Mar 18 '25 12:03 AjayFrancisTechversant

Observing the same with RN 0.78 and Skia 2.0.5

The initial mount is slow compared to 0.76 and Skia 1.x

ashwini-ksingh avatar Jun 24 '25 20:06 ashwini-ksingh

+1

dsshard avatar Jun 27 '25 17:06 dsshard

any solution ?

sourav-mst avatar Jul 11 '25 06:07 sourav-mst

Currently facing this same issue.

Stancobridge avatar Aug 24 '25 12:08 Stancobridge