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

(WIP) Imperative View #2562

Closed

Conversation

terrysahaidak
Copy link
Contributor

@terrysahaidak terrysahaidak commented Aug 2, 2024

Disclaimer: Everything in there is very proof of concept.

This PR implements direct access to the native surface canvas and allows us to render imperatively from either JS or UI (worklet) thread.

Currently only works on android since on iOS we recreate the surface on each render, it doesn't let us get the canvas reference at the right time.

In the example I implemented a simple UI only renderer that adds components as you scroll, renders only visible components, and disposes on unmount.

(note that enabling screen recording on Pixel 4 i was using for testing makes the performance worse. also it was recorded in dev)
https://github.com/user-attachments/assets/d372b2dc-4e6b-46bb-9e50-2950ee5d9c75

@wcandillon
Copy link
Contributor

wcandillon commented Sep 12, 2024

Closing as being superseded by #2632

@wcandillon wcandillon closed this Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants