I am using react native 0.61.4 and library react-native-date-picker 2.7.3 . I am trying to build the project through xcode and I keep getting this error: Property 'overrideUserInterfaceStyle' not found on object of type 'DatePicker *' in DatePicker.m in three functions. One of these is this one:
- (instancetype)initWithFrame:(CGRect)frame
{
if ((self = [super initWithFrame:frame])) {
[self addTarget:self action:@selector(didChange)
forControlEvents:UIControlEventValueChanged];
if(@available(iOS 13, *)) {
self.overrideUserInterfaceStyle = UIUserInterfaceStyleLight;
}
}
return self;
}
Is this a bug of react-native-date-picker?