manageChildren

open fun manageChildren(viewTag: Int, @Nullable moveFrom: ReadableArray, @Nullable moveTo: ReadableArray, @Nullable addChildTags: ReadableArray, @Nullable addAtIndices: ReadableArray, @Nullable removeFrom: ReadableArray)

Interface for adding/removing/moving views within a parent view from JS.

Parameters

viewTag

the view tag of the parent view

moveFrom

a list of indices in the parent view to move views from

moveTo

parallel to moveFrom, a list of indices in the parent view to move views to

addChildTags

a list of tags of views to add to the parent

addAtIndices

parallel to addChildTags, a list of indices to insert those children at

removeFrom

a list of indices of views to permanently remove. The memory for the corresponding views and data structures should be reclaimed.