Unable to build debug with react native 0.67.3
See original GitHub issueDescribe the bug After upgrading to RN 0.67.3, I can’t build my app because of this error
Declaration of 'RCTBubblingEventBlock' must be imported from module 'React.RCTComponent' before it is required
The error when I’m trying to run is using bash:
CompileC /Users/[user]/Library/Developer/Xcode/DerivedData/[app]-acyywdzqrwcxjmcgsnxsusgggtux/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-date-picker.build/Objects-normal/x86_64/DatePicker.o /Users/bravebinary/git_repo/ecotrak/[app]/node_modules/react-native-date-picker/ios/RNDatePicker/DatePicker.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'react-native-date-picker' from project 'Pods')
When I test the same project with react native 0.66.4, I see no build error
Issue Analytics
- State:
- Created 2 years ago
- Reactions:8
- Comments:8 (1 by maintainers)
Add #import <React/RCTView.h> to the top of DatePicker.m
This will solve the missing import issue
Still have this issue in 4.2.2
EDIT: I had some stale pods or something. Clearing them out, and the pod-lock file, did the trick.
Followed this SO answer https://stackoverflow.com/a/60581016/3705183