Browse Source

Revert "Fixed LightBox not updating overlay width/height on rotate" (#1657)

* Revert "Add custom bar button item class (#1641)"

This reverts commit 80ae102456.

* Revert "Export `Navigator` class for public use (#1647)"

This reverts commit 1770113321.

* Revert "Hide back button when calling resetTo (#1469)"

This reverts commit 518e372e05.

* Revert "Add isRootLaunched implementation on Android"

This reverts commit 6f4aca32a6.

* Revert "Fixed LightBox not updating overlay width/height on rotate (#1461)"

This reverts commit 54d2531720.
Guy Carmeli 7 years ago
parent
commit
137f62ff54
1 changed files with 1 additions and 6 deletions
  1. 1
    6
      ios/RCCLightBox.m

+ 1
- 6
ios/RCCLightBox.m View File

48
                 UIColor *backgroundColor = [RCTConvert UIColor:style[@"backgroundColor"]];
48
                 UIColor *backgroundColor = [RCTConvert UIColor:style[@"backgroundColor"]];
49
                 if (backgroundColor != nil)
49
                 if (backgroundColor != nil)
50
                 {
50
                 {
51
-                    self.overlayColorView = [[UIView alloc] init];
51
+                    self.overlayColorView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, frame.size.width, frame.size.height)];
52
                     self.overlayColorView.backgroundColor = backgroundColor;
52
                     self.overlayColorView.backgroundColor = backgroundColor;
53
                     self.overlayColorView.alpha = 0;
53
                     self.overlayColorView.alpha = 0;
54
                     [self addSubview:self.overlayColorView];
54
                     [self addSubview:self.overlayColorView];
87
 -(void)layoutSubviews
87
 -(void)layoutSubviews
88
 {
88
 {
89
     [super layoutSubviews];
89
     [super layoutSubviews];
90
-
91
-    self.reactView.frame = self.bounds;
92
-    if (self.overlayColorView != nil) {
93
-        self.overlayColorView.frame = self.bounds;
94
-    }
95
     
90
     
96
     if(!self.yellowBoxRemoved)
91
     if(!self.yellowBoxRemoved)
97
     {
92
     {