react-native-navigation 7.24.2 → 7.24.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -78,6 +78,7 @@ public class ComponentViewController extends ChildController<ComponentLayout> {
78
78
  if (view != null)
79
79
  view.sendComponentWillStart();
80
80
  super.onViewDidAppear();
81
+ view.requestApplyInsets();
81
82
  if (view != null && lastVisibilityState == VisibilityState.Disappear) view.sendComponentStart();
82
83
  lastVisibilityState = VisibilityState.Appear;
83
84
  }
@@ -127,6 +127,13 @@ public class ComponentViewControllerTest extends BaseTest {
127
127
  Mockito.verify(view, Mockito.times(2)).sendComponentStart();
128
128
  }
129
129
 
130
+ @Test
131
+ public void shouldCallApplyWindowInsetsWhenViewFullyAppeared(){
132
+ uut.ensureViewIsCreated();
133
+ uut.onViewDidAppear();
134
+ Mockito.verify(view).requestApplyInsets();
135
+ }
136
+
130
137
  @Test
131
138
  public void isViewShownOnlyIfComponentViewIsReady() {
132
139
  Java6Assertions.assertThat(uut.isViewShown()).isFalse();
@@ -2,20 +2,6 @@
2
2
 
3
3
  @implementation RNNComponentRootView
4
4
 
5
- - (instancetype)initWithBridge:(RCTBridge *)bridge
6
- moduleName:(NSString *)moduleName
7
- initialProperties:(NSDictionary *)initialProperties
8
- eventEmitter:(RNNEventEmitter *)eventEmitter
9
- reactViewReadyBlock:(RNNReactViewReadyCompletionBlock)reactViewReadyBlock {
10
- self = [super initWithBridge:bridge
11
- moduleName:moduleName
12
- initialProperties:initialProperties
13
- eventEmitter:eventEmitter
14
- reactViewReadyBlock:reactViewReadyBlock];
15
- [bridge.uiManager setAvailableSize:UIScreen.mainScreen.bounds.size forRootView:self];
16
- return self;
17
- }
18
-
19
5
  - (NSString *)componentType {
20
6
  return ComponentTypeScreen;
21
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-navigation",
3
- "version": "7.24.2",
3
+ "version": "7.24.3",
4
4
  "description": "React Native Navigation - truly native navigation for iOS and Android",
5
5
  "license": "MIT",
6
6
  "nativePackage": true,