react-native-date-picker: Expo EAS compilation error (iOS only)

Describe the bug Since updating to the latest version (4.1.3) I can’t compile for iOS anymore. Android still compiles without error.

(node_modules/react-native-date-picker/ios/RNDatePicker/DatePicker.m:15:29)

  13 | @interface DatePicker ()
  14 | 
> 15 | @property (nonatomic, copy) RCTBubblingEventBlock onChange;
     |                             ^ declaration of 'RCTBubblingEventBlock' must be imported from module 'React.RCTComponent' before it is required
  16 | @property (nonatomic, assign) NSInteger reactMinuteInterval;
  17 | 
  18 | @end 

Expected behavior Should compile.

To Reproduce Create Project Install react-native-date-picker 4.1.3 eas build --profile development

Smartphone:

  • OS: iOS
  • React Native version 0.64.12
  • react-native-date-picker version 4.1.3

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 10
  • Comments: 15 (1 by maintainers)

Commits related to this issue

Most upvoted comments

Any one merging this back to main so that it works for us?

Yeah, I just pinned "expo": "^44.0.6" in package.json and verified in my yarn.lock that I’m getting 44.0.6. Still appear to be building with this issue. Going to try the patch suggested above.

@henninghall update the PR to follow what expo suggest, let me know if I need to change anything or if it is good to be released.

@henninghall can confirm that the issue still appears. The patch provided here fixes it, please include it in the next version.