@@ -12,24 +12,24 @@ class RNSScreenComponentDescriptor final
1212 public: 
1313  using  ConcreteComponentDescriptor::ConcreteComponentDescriptor;
1414
15-   void  adopt (ShadowNode::Unshared  const  & shadowNode) const  override  {
15+   void  adopt (ShadowNode&  shadowNode) const  override  {
1616    react_native_assert (
17-         std::dynamic_pointer_cast <RNSScreenShadowNode>( shadowNode));
18-     auto  screenShadowNode =
19-         std::static_pointer_cast <RNSScreenShadowNode>(shadowNode);
17+         dynamic_cast <RNSScreenShadowNode*>(& shadowNode));
18+     auto &  screenShadowNode =
19+         static_cast <RNSScreenShadowNode& >(shadowNode);
2020
2121    react_native_assert (
22-         std::dynamic_pointer_cast <YogaLayoutableShadowNode>( screenShadowNode));
23-     auto  layoutableShadowNode =
24-         std::static_pointer_cast <YogaLayoutableShadowNode>(screenShadowNode);
22+         dynamic_cast <YogaLayoutableShadowNode*>(& screenShadowNode));
23+     auto &  layoutableShadowNode =
24+         dynamic_cast <YogaLayoutableShadowNode& >(screenShadowNode);
2525
2626    auto  state =
2727        std::static_pointer_cast<const  RNSScreenShadowNode::ConcreteState>(
28-             shadowNode-> getState ());
28+             shadowNode. getState ());
2929    auto  stateData = state->getData ();
3030
3131    if  (stateData.frameSize .width  != 0  && stateData.frameSize .height  != 0 ) {
32-       layoutableShadowNode-> setSize (
32+       layoutableShadowNode. setSize (
3333          Size{stateData.frameSize .width , stateData.frameSize .height });
3434    }
3535
0 commit comments