Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

attach / detach of views does not work #1

Closed
tbosch opened this issue Jun 22, 2015 · 3 comments
Closed

attach / detach of views does not work #1

tbosch opened this issue Jun 22, 2015 · 3 comments

Comments

@tbosch
Copy link
Contributor

tbosch commented Jun 22, 2015

Right now, we already recreate the view

@tbosch
Copy link
Contributor Author

tbosch commented Jun 22, 2015

@uber5001 please add details here and create an issue in the react native repository that links to here.

@uber5001
Copy link
Contributor

When trying to detach and re-attach a native view, the native side will fail. This is because native views get destroyed upon being removed from their parent.

Angular would benefit if these views could be re-used. Currently, the renderer just re-creates views as needed with the same set of properties and children that the destroyed view had.

When React Native supports re-use of native elements, then this renderer should be changed to use that feature.

@marclaval
Copy link
Contributor

We don't have a pool of view anymore.

On top of that, the renderer optimises the interactions with React Native in order to avoid detaching / attaching when it is not needed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants