Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16552

Property 'overrideUserInterfaceStyle' not found on object of type 'DatePicker *'

$
0
0

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?


Viewing all articles
Browse latest Browse all 16552

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>