|
|
|
|
34
|
reactView.sizeFlexibility = RCTRootViewSizeFlexibilityWidthAndHeight;
|
34
|
reactView.sizeFlexibility = RCTRootViewSizeFlexibilityWidthAndHeight;
|
35
|
reactView.delegate = self;
|
35
|
reactView.delegate = self;
|
36
|
reactView.backgroundColor = [UIColor clearColor];
|
36
|
reactView.backgroundColor = [UIColor clearColor];
|
|
|
37
|
+ reactView.hidden = CGRectEqualToRect(reactView.frame, CGRectZero);
|
37
|
|
38
|
|
38
|
[NSLayoutConstraint deactivateConstraints:reactView.constraints];
|
39
|
[NSLayoutConstraint deactivateConstraints:reactView.constraints];
|
39
|
self.widthConstraint = [NSLayoutConstraint constraintWithItem:reactView
|
40
|
self.widthConstraint = [NSLayoutConstraint constraintWithItem:reactView
|
|
|
|
|
67
|
self.heightConstraint.constant = rootView.intrinsicContentSize.height;
|
68
|
self.heightConstraint.constant = rootView.intrinsicContentSize.height;
|
68
|
[rootView setNeedsUpdateConstraints];
|
69
|
[rootView setNeedsUpdateConstraints];
|
69
|
[rootView updateConstraintsIfNeeded];
|
70
|
[rootView updateConstraintsIfNeeded];
|
|
|
71
|
+ rootView.hidden = NO;
|
70
|
}
|
72
|
}
|
71
|
|
73
|
|
72
|
- (void)onButtonPressed {
|
74
|
- (void)onButtonPressed {
|