Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatible function pointer types passing 'YGSize(YGNodeConstRef, float, YGMeasureMode, float, YGMeasureMode)' (aka 'struct YGSize (const struct YGNode , float, enum YGMeasureMode, float, enum YGMeasureMode)') to parameter of type 'YGMeasureFunc' (aka 'struct YGSize ()(struct YGNode *, float, enum YGMeasureMode, float, enum YGMeasureMode)') #934

Closed
deepanshuprabhatkhabar opened this issue Oct 3, 2024 · 6 comments

Comments

@deepanshuprabhatkhabar
Copy link

Incompatible function pointer types passing 'YGSize (YGNodeConstRef, float, YGMeasureMode, float, YGMeasureMode)' (aka 'struct YGSize (const struct YGNode , float, enum YGMeasureMode, float, enum YGMeasureMode)') to parameter of type 'YGMeasureFunc' (aka 'struct YGSize ()(struct YGNode *, float, enum YGMeasureMode, float, enum YGMeasureMode)')

@deepanshuprabhatkhabar deepanshuprabhatkhabar changed the title Incompatible function pointer types passing 'YGSize Incompatible function pointer types passing 'YGSize(YGNodeConstRef, float, YGMeasureMode, float, YGMeasureMode)' (aka 'struct YGSize (const struct YGNode , float, enum YGMeasureMode, float, enum YGMeasureMode)') to parameter of type 'YGMeasureFunc' (aka 'struct YGSize ()(struct YGNode *, float, enum YGMeasureMode, float, enum YGMeasureMode)') Oct 3, 2024
@ntv19398
Copy link

ntv19398 commented Oct 7, 2024

I changed YGNodeConstRef to YGNodeRef in line 44. It helped me to resolve this error.
Screenshot 2024-10-07 at 10 07 47

@Sanket8304
Copy link

@ntv19398 which version of @react-native-community/datetimepicker and Xcode currently you are using?

@deepanshuprabhatkhabar
Copy link
Author

@ntv19398 which version of @react-native-community/datetimepicker and Xcode currently you are using?

xcode 16 and latest version of @react-native-community/datetimepicker 8.2.0

@deepanshuprabhatkhabar
Copy link
Author

I changed YGNodeConstRef to YGNodeRef in line 44. It helped me to resolve this error. Screenshot 2024-10-07 at 10 07 47

i have already applied this solution but it is not working with xcode 16

@ntv19398
Copy link

ntv19398 commented Oct 8, 2024

@ntv19398 which version of @react-native-community/datetimepicker and Xcode currently you are using?

I'm using Xcode 16 and @react-native-community/datetimepicker version 7.6.1
React native version: 0.71.14

@vonovak
Copy link
Member

vonovak commented Oct 12, 2024

Hello and thanks for asking,
this is the same as #911
Thank you 🙂

@vonovak vonovak closed this as completed Oct 12, 2024
@react-native-datetimepicker react-native-datetimepicker locked and limited conversation to collaborators Oct 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants