The list of children, sorted back-to-front. That is, the first child in the array is the bottommost layer on the screen, and the last child in the array is the topmost layer.
children: ReadonlyArray<SceneNode> [readonly]
This array can be read like and iterated like a regular array. However, calling this property always returns a new array, and both the property and the new array are read-only.
As such, this property cannot be assigned to, and the array cannot be modified directly (it wouldn't do anything). Instead, use
If you are curious, the reason why inserting children has to be done via API calls is because our internal representation for the layer tree uses fractional indexing and
insertChild performs that conversion.