File tree 1 file changed +8
-8
lines changed
ios/fabric/cpp/react/renderer/components/RNDateTimePicker
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -18,20 +18,20 @@ class RNDateTimePickerComponentDescriptor final : public ConcreteComponentDescri
18
18
public:
19
19
using ConcreteComponentDescriptor::ConcreteComponentDescriptor;
20
20
21
- void adopt (ShadowNode::Unshared const &shadowNode) const override {
22
- react_native_assert (std::dynamic_pointer_cast <RNDateTimePickerShadowNode>( shadowNode));
23
- auto pickerShadowNode = std::static_pointer_cast <RNDateTimePickerShadowNode>(shadowNode);
21
+ void adopt (ShadowNode &shadowNode) const override {
22
+ react_native_assert (dynamic_cast <RNDateTimePickerShadowNode*>(& shadowNode));
23
+ auto & pickerShadowNode = static_cast <RNDateTimePickerShadowNode& >(shadowNode);
24
24
25
25
react_native_assert (
26
- std::dynamic_pointer_cast <YogaLayoutableShadowNode>( pickerShadowNode));
27
- auto layoutableShadowNode =
28
- std::static_pointer_cast <YogaLayoutableShadowNode>(pickerShadowNode);
26
+ dynamic_cast <YogaLayoutableShadowNode*>(& pickerShadowNode));
27
+ auto & layoutableShadowNode =
28
+ static_cast <YogaLayoutableShadowNode& >(pickerShadowNode);
29
29
30
- auto state = std::static_pointer_cast<const RNDateTimePickerShadowNode::ConcreteState>(shadowNode-> getState ());
30
+ auto state = std::static_pointer_cast<const RNDateTimePickerShadowNode::ConcreteState>(shadowNode. getState ());
31
31
auto stateData = state->getData ();
32
32
33
33
if (stateData.frameSize .width != 0 && stateData.frameSize .height != 0 ) {
34
- layoutableShadowNode-> setSize (Size {stateData.frameSize .width , stateData.frameSize .height });
34
+ layoutableShadowNode. setSize (Size {stateData.frameSize .width , stateData.frameSize .height });
35
35
}
36
36
37
37
ConcreteComponentDescriptor::adopt (shadowNode);
You can’t perform that action at this time.
0 commit comments