In the older version " Incompatible function pointer types passing 'YGSize '" is issue but in latest version it is creating issue with xcode 15 Why?
dprajapati1179 opened this issue Β· comments
Dinesh Kumar Prajapati commented
Hi! π
Firstly, thanks for your work on this project! π
Today I used patch-package to patch @react-native-community/datetimepicker@7.6.3
for the project I'm working on.
Here is the diff that solved my problem:
diff --git a/node_modules/@react-native-community/datetimepicker/ios/RNDateTimePickerShadowView.m b/node_modules/@react-native-community/datetimepicker/ios/RNDateTimePickerShadowView.m
index 4ff3362..c139440 100644
--- a/node_modules/@react-native-community/datetimepicker/ios/RNDateTimePickerShadowView.m
+++ b/node_modules/@react-native-community/datetimepicker/ios/RNDateTimePickerShadowView.m
@@ -41,7 +41,7 @@ - (void)setTimeZoneName:(NSString *)timeZoneName {
YGNodeMarkDirty(self.yogaNode);
}
-static YGSize RNDateTimePickerShadowViewMeasure(YGNodeConstRef node, float width, YGMeasureMode widthMode, float height, YGMeasureMode heightMode)
+static YGSize RNDateTimePickerShadowViewMeasure(YGNodeRef node, float width, YGMeasureMode widthMode, float height, YGMeasureMode heightMode)
{
RNDateTimePickerShadowView *shadowPickerView = (__bridge RNDateTimePickerShadowView *)YGNodeGetContext(node);
This issue body was partially generated by patch-package.
Emil Malmgaard Rasmussen commented
Just upgraded to 7.6.3. I am experiencing same issue.
Worked when I changed from: YGNodeConstRef to YGNodeRef in RNDateTimePickerShadowView.m
Vojtech Novak commented
Hello this should be fixed in v8 https://github.com/react-native-datetimepicker/datetimepicker/releases/tag/v8.0.0
Please open a new issue if the problem persists
Thank you!