Skip to content

v1.5.0 iOS build fails with RN 0.59 #816

@geraintwhite

Description

@geraintwhite
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
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Platform: iOSThis issue is specific to iOS

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions