This seems to be a well-known issue for the native reaction when upgrading to Xcode 8. I followed this error correction guide that I have, but I still get the following error when my application tries to load the component <ScrollView/>.
[RCTCustomScrollView refreshControl]: unrecognized selector sent to instance 0x16099e00
The code in mine RCTScrollView.m, which seems to seem to everyone, is causing the problem shown below:
- (void)setRefreshControl:(RCTRefreshControl *)refreshControl
{
if (refreshControl) {
[refreshControl removeFromSuperview];
}
refreshControl = refreshControl;
[self addSubview:refreshControl];
}
- (void)removeReactSubview:(UIView *)subview
{
if ([subview isKindOfClass:[RCTRefreshControl class]]) {
_scrollView.refreshControl = nil;
} else {
RCTAssert(_contentView == subview, @"Attempted to remove non-existent subview");
_contentView = nil;
[subview removeFromSuperview];
}
}
Everything works fine when I run it on a device running iOS 10.1.1, but when I try to connect to a device running 9.3, it crashes when it tries to boot <ScrollView/>.
- native 0.28, , , .