Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ Point RNSScreenShadowNode::getContentOriginOffset(
return stateData.contentOffset;
}

std::optional<std::reference_wrapper<const ShadowNode::Shared>>
std::optional<std::reference_wrapper<const std::shared_ptr<const ShadowNode>>>
findHeaderConfigChild(const YogaLayoutableShadowNode &screenShadowNode) {
for (const ShadowNode::Shared &child : screenShadowNode.getChildren()) {
for (const std::shared_ptr<const ShadowNode> &child : screenShadowNode.getChildren()) {
if (std::strcmp(child->getComponentName(), "RNSScreenStackHeaderConfig") ==
0) {
return {std::cref(child)};
Expand Down Expand Up @@ -81,7 +81,7 @@ std::optional<float> findHeaderHeight(
}
#endif // ANDROID

void RNSScreenShadowNode::appendChild(const ShadowNode::Shared &child) {
void RNSScreenShadowNode::appendChild(const std::shared_ptr<const ShadowNode> &child) {
YogaLayoutableShadowNode::appendChild(child);
#ifdef ANDROID
const auto &stateData = getStateData();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class JSI_EXPORT RNSScreenShadowNode final : public ConcreteViewShadowNode<

Point getContentOriginOffset(bool includeTransform) const override;

void appendChild(const ShadowNode::Shared &child) override;
void appendChild(const std::shared_ptr<const ShadowNode> &child) override;

void layout(LayoutContext layoutContext) override;

Expand Down