Skip to content

What are the alternatives to setNativeProps in fabric? #77

Answered by sammy-SC
rushatgabhane asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @rushatgabhane,

what's your use case? Where are you running into performance issues?

We were able to migrate all uses of setNativeProps to use state. setNativeProps breaks model for the new architecture in a fundamental way and there wasn't really a way to support it moving forward. setNativeProps achieves its performance benefits by skipping all steps. This way, we get the performance benefit, but representation of UI gets out of sync between React, React Native and what's actually shown to the user. It limits our ability to add new features like synchronous rendering or unified animations.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cortinico
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants