-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
v1.5.0 iOS build fails with RN 0.59 #816
Copy link
Copy link
Closed
Labels
Platform: iOSThis issue is specific to iOSThis issue is specific to iOS
Description
fatal error: 'React/RCTRootContentView.h' file not found
#import <React/RCTRootContentView.h>v1.4.1 built fine with RN 0.59 but v1.5.0 fails in the Xcode build.
It appears to be related to this PR updating the project to RN 0.61.
Perhaps you could do something like this for backwards compatibility?
#if __has_include(<React/RCTRootContentView.h>)
#import <React/RCTRootContentView.h>
#endif
...
if ([parent isKindOfClass:[RCTRootView class]]) {
#if __has_include(<React/RCTRootContentView.h>)
[((RCTRootContentView*)rootContentView).touchHandler cancel];
#else
[(RCTRootView*)parent cancelTouches];
#endif
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Platform: iOSThis issue is specific to iOSThis issue is specific to iOS