| 1791 | const auto* yogaNode = getContainerYogaNode(); |
| 1792 | if (yogaNode == nullptr) { |
| 1793 | return 0; |
| 1794 | } |
| 1795 | |
| 1796 | return resolveYogaNode(yogaNode)->getChildCount(); |
| 1797 | } |
| 1798 | |
| 1799 | ViewNode* ViewNode::getChildAt(size_t index) const { |
| 1800 | const auto* yogaNode = getContainerYogaNode(); |
| 1801 | SC_ASSERT_NOTNULL(yogaNode); |
| 1802 | |
| 1803 | auto* childYogaNode = resolveYogaNode(yogaNode)->getChild(index); |