|
@@ -74,9 +74,9 @@ RCT_ENUM_CONVERTER(UIModalPresentationStyle,
|
74
|
74
|
backgroundImageView = [[UIImageView alloc] initWithFrame:viewController.view.bounds];
|
75
|
75
|
[viewController.view insertSubview:backgroundImageView atIndex:0];
|
76
|
76
|
}
|
77
|
|
-
|
|
77
|
+
|
78
|
78
|
backgroundImageView.layer.masksToBounds = YES;
|
79
|
|
- backgroundImageView.image = [RCTConvert UIImage:self.backgroundImage];
|
|
79
|
+ backgroundImageView.image = [self.backgroundImage isKindOfClass:[UIImage class]] ? (UIImage*)self.backgroundImage : [RCTConvert UIImage:self.backgroundImage];
|
80
|
80
|
[backgroundImageView setContentMode:UIViewContentModeScaleAspectFill];
|
81
|
81
|
}
|
82
|
82
|
|
|
@@ -86,9 +86,9 @@ RCT_ENUM_CONVERTER(UIModalPresentationStyle,
|
86
|
86
|
backgroundImageView = [[UIImageView alloc] initWithFrame:viewController.view.bounds];
|
87
|
87
|
[viewController.navigationController.view insertSubview:backgroundImageView atIndex:0];
|
88
|
88
|
}
|
89
|
|
-
|
|
89
|
+
|
90
|
90
|
backgroundImageView.layer.masksToBounds = YES;
|
91
|
|
- backgroundImageView.image = [RCTConvert UIImage:self.rootBackgroundImage];
|
|
91
|
+ backgroundImageView.image = [self.rootBackgroundImage isKindOfClass:[UIImage class]] ? (UIImage*)self.rootBackgroundImage : [RCTConvert UIImage:self.rootBackgroundImage];
|
92
|
92
|
[backgroundImageView setContentMode:UIViewContentModeScaleAspectFill];
|
93
|
93
|
}
|
94
|
94
|
|