Fix compile error on xcode 10 (#212)

This commit is contained in:
Sunny Luo
2019-11-05 21:05:23 +08:00
committed by Michał Osadnik
parent 20650a8ede
commit 2536837795

View File

@@ -191,7 +191,7 @@
}
navitem.largeTitleDisplayMode = config.largeTitle ? UINavigationItemLargeTitleDisplayModeAlways : UINavigationItemLargeTitleDisplayModeNever;
}
#ifdef __IPHONE_13_0
if (@available(iOS 13.0, *)) {
UINavigationBarAppearance *appearance = [UINavigationBarAppearance new];
@@ -257,7 +257,7 @@
navitem.compactAppearance = appearance;
navitem.scrollEdgeAppearance = appearance;
}
#endif
for (RNSScreenStackHeaderSubview *subview in config.reactSubviews) {
switch (subview.type) {
case RNSScreenStackHeaderSubviewTypeLeft: {