What are the alternatives to setNativeProps in fabric? #77
-
The docs say that we should migrate all values of Is there any other alternative? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello @rushatgabhane, what's your use case? Where are you running into performance issues? We were able to migrate all uses of |
Beta Was this translation helpful? Give feedback.
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.