Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save KunstDerFuge/5eb87e604e7765eca87272a5286414fd to your computer and use it in GitHub Desktop.
Save KunstDerFuge/5eb87e604e7765eca87272a5286414fd to your computer and use it in GitHub Desktop.
diff --git a/node_modules/@react-native-community/datetimepicker/ios/fabric/cpp/react/renderer/components/RNDateTimePicker/ComponentDescriptors.h b/node_modules/@react-native-community/datetimepicker/ios/fabric/cpp/react/renderer/components/RNDateTimePicker/ComponentDescriptors.h
index 4a1a8e2..7e8c828 100644
--- a/node_modules/@react-native-community/datetimepicker/ios/fabric/cpp/react/renderer/components/RNDateTimePicker/ComponentDescriptors.h
+++ b/node_modules/@react-native-community/datetimepicker/ios/fabric/cpp/react/renderer/components/RNDateTimePicker/ComponentDescriptors.h
@@ -18,7 +18,7 @@ class RNDateTimePickerComponentDescriptor final : public ConcreteComponentDescri
public:
using ConcreteComponentDescriptor::ConcreteComponentDescriptor;
- void adopt(ShadowNode::Unshared const &shadowNode) const override {
+ void adopt(ShadowNode::Unshared const &shadowNode) const {
react_native_assert(std::dynamic_pointer_cast<RNDateTimePickerShadowNode>(shadowNode));
auto pickerShadowNode = std::static_pointer_cast<RNDateTimePickerShadowNode>(shadowNode);
@@ -34,7 +34,7 @@ class RNDateTimePickerComponentDescriptor final : public ConcreteComponentDescri
layoutableShadowNode->setSize(Size{stateData.frameSize.width, stateData.frameSize.height});
}
- ConcreteComponentDescriptor::adopt(shadowNode);
+ ConcreteComponentDescriptor::adopt((ShadowNode&)shadowNode);
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment