@@ -282,10 +282,11 @@ - (UIImage *)loadBackButtonImageInViewController:(UIViewController *)vc
282282 // in the image attribute not being updated. We manually set frame to the size of an image
283283 // in order to trigger proper reload that'd update the image attribute.
284284 RCTImageSource *imageSource = [RNSScreenStackHeaderConfig imageSourceFromImageView: imageView];
285- [imageView reactSetFrame: CGRectMake (imageView.frame.origin.x,
286- imageView.frame.origin.y,
287- imageSource.size.width,
288- imageSource.size.height)];
285+ [imageView reactSetFrame: CGRectMake (
286+ imageView.frame.origin.x,
287+ imageView.frame.origin.y,
288+ imageSource.size.width,
289+ imageSource.size.height)];
289290 }
290291
291292 UIImage *image = imageView.image ;
@@ -847,12 +848,13 @@ - (void)mountChildComponentView:(UIView<RCTComponentViewProtocol> *)childCompone
847848 return ;
848849 }
849850
850- RCTAssert (childComponentView.superview == nil ,
851- @" Attempt to mount already mounted component view. (parent: %@ , child: %@ , index: %@ , existing parent: %@ )" ,
852- self,
853- childComponentView,
854- @(index),
855- @([childComponentView.superview tag ]));
851+ RCTAssert (
852+ childComponentView.superview == nil ,
853+ @" Attempt to mount already mounted component view. (parent: %@ , child: %@ , index: %@ , existing parent: %@ )" ,
854+ self,
855+ childComponentView,
856+ @(index),
857+ @([childComponentView.superview tag ]));
856858
857859 // [_reactSubviews insertObject:(RNSScreenStackHeaderSubview *)childComponentView atIndex:index];
858860 [self insertReactSubview: (RNSScreenStackHeaderSubview *)childComponentView atIndex: index];
@@ -1129,21 +1131,23 @@ @implementation RNSScreenStackHeaderConfigManager
11291131
11301132@implementation RCTConvert (RNSScreenStackHeader)
11311133
1132- RCT_ENUM_CONVERTER (UISemanticContentAttribute,
1133- (@{
1134- @" ltr" : @(UISemanticContentAttributeForceLeftToRight),
1135- @" rtl" : @(UISemanticContentAttributeForceRightToLeft),
1136- }),
1137- UISemanticContentAttributeUnspecified,
1138- integerValue)
1139-
1140- RCT_ENUM_CONVERTER(UINavigationItemBackButtonDisplayMode,
1141- (@{
1142- @" default" : @(UINavigationItemBackButtonDisplayModeDefault),
1143- @" generic" : @(UINavigationItemBackButtonDisplayModeGeneric),
1144- @" minimal" : @(UINavigationItemBackButtonDisplayModeMinimal),
1145- }),
1146- UINavigationItemBackButtonDisplayModeDefault,
1147- integerValue)
1134+ RCT_ENUM_CONVERTER (
1135+ UISemanticContentAttribute,
1136+ (@{
1137+ @" ltr" : @(UISemanticContentAttributeForceLeftToRight),
1138+ @" rtl" : @(UISemanticContentAttributeForceRightToLeft),
1139+ }),
1140+ UISemanticContentAttributeUnspecified,
1141+ integerValue)
1142+
1143+ RCT_ENUM_CONVERTER(
1144+ UINavigationItemBackButtonDisplayMode,
1145+ (@{
1146+ @" default" : @(UINavigationItemBackButtonDisplayModeDefault),
1147+ @" generic" : @(UINavigationItemBackButtonDisplayModeGeneric),
1148+ @" minimal" : @(UINavigationItemBackButtonDisplayModeMinimal),
1149+ }),
1150+ UINavigationItemBackButtonDisplayModeDefault,
1151+ integerValue)
11481152
11491153@end
0 commit comments