react-native-datetimepicker / datetimepicker

React Native date & time picker component for iOS, Android and Windows
MIT License
2.53k stars 413 forks source link

When running in Xcode 15.4 getting Incompatible function pointer types passing 'YGSize (...)' exception #904

Closed sachinmishra365 closed 1 month ago

CezarCobuz commented 4 months ago

Possible duplicate of https://github.com/react-native-datetimepicker/datetimepicker/issues/905 (Open)

And similar to https://github.com/react-native-datetimepicker/datetimepicker/issues/866 (Closed)

The issue still is in 8.1.0 with Xcode 15.4

Jamal-ReachFirst commented 4 months ago

+1, facing same issue

"@react-native-community/datetimepicker": "^8.2.0",
"react-native": "0.72.10",

Xcode 15.4

Jamal-ReachFirst commented 4 months ago

Confirmed! this worked for me.

⁠Go to ⁠ node_modules/@react-native-community/datetimepicker/ios/RNDateTimePickerShadowView.m ⁠, replace ⁠ YGNodeConstRef ⁠ with ⁠ YGNodeRef ⁠ in ⁠ RNDateTimePickerShadowView.m ⁠ line 44.

I am using:

"@react-native-community/datetimepicker": "^8.2.0",
"react-native": "0.72.10",

Xcode 15.4

pasquale95 commented 3 months ago

Hi, still facing this issue with:

"react-native": "0.72.15",
"@react-native-community/datetimepicker": "^8.2.0",

The proposed temporary patches are not sustainable, please fix it in the main code. Thanks!

vonovak commented 1 month ago

Hello and thanks for asking, you're having this error because you're running an old version of RN. You need to install a version prior to https://github.com/react-native-datetimepicker/datetimepicker/releases/tag/v7.6.3 Thank you 🙂