-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
[Optimization] UIManager cannot re-use elements #1707
Comments
For container 1, move from null, to null, add children null, add at indices null, remove at indices [0]
If you look at the definition of
Notice that what you indicated as detaching is actually permanently removing. And immediately after that:
So I think the point about Also, for context it appears to be related to this: angular/react-native-renderer#1 |
Closing due to inactivity |
It would be useful if the UIManager allowed for re-use of native elements, so that elements don't need to be destroyed every time they should be removed from the application tree. Instead of destroying elements upon removal from their parent, there could be a
UIManager.destroyView
instead.Currently, this is what happens:
Ideally, when re-attaching the text, it uses the same element that was detached earlier.
The text was updated successfully, but these errors were encountered: