v1.5.0 iOS build fails with RN 0.59
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
}
Same issue here on RN 0.60. The RCTRootContentView.h file seems to not be available on RN 0.60, so 1.5.0 was indeed a breaking change for iOS.
facing same issue on RN 0.59.0 & react-native-gesture-handler 1.5.0.... is there any issue with
I am having the same issue. I tried Product -> Clean Build Folder, but that did not help.
i resolve this issue by downgrading to 1.3. and now im not using cocoapods creating app without cocoapods.. if you need help please tell me send you details.
how do you downgrade to 1.3? pls send me the details! thanks!
Got the same error using 1.5.0 on RN 0.59.9
To temporarily downgrade put this in your package.json:
"react-native-gesture-handler": "~1.4.0",
And reinstall your dependencies
Got the same error using 1.5.0 on RN 0.59.9
To temporarily downgrade put this in your package.json:
"react-native-gesture-handler": "~1.4.0",And reinstall your dependencies
Thank you. I can run normally after I change the version.
Same problem with RN 0.61.1.
resolved, thks @GunnarAK
Got the same error using 1.5.0 on RN 0.59.9
To temporarily downgrade put this in your package.json:
"react-native-gesture-handler": "~1.4.0",And reinstall your dependencies
1.4.0 & RN 0.59.9 do not work on Android due to androidx. Had to downgrade back to 1.1.3.
Replace #import <React/RCTRootContentView.h> with #import "RCTRootContentView.h"
Problem Resolved
Replace #import <React/RCTRootContentView.h> with #import "RCTRootContentView.h"
My RN project decided to stop working without any reason. Been stuck with this error since yesterday, tried many different things and thanks to yours it worked.
Thanks @Ashutosh8127 !!
Replace #import <React/RCTRootContentView.h> with #import "RCTRootContentView.h"
Problem Resolved
the problem was solved, thanks
@Ashutosh8127 : Can you share path ?
this stack overflow comment solved my Problem https://stackoverflow.com/a/58833342/11394425
Replace #import <React/RCTRootContentView.h> with #import "RCTRootContentView.h"
Problem Resolved
thank youuu.....u save my day @Ashutosh8127
thank u @Ashutosh8127
Is this going to be fixed in the lib or do we have to stay on 1.4.x for RN < 0.60?
+1
thanks @Ashutosh8127