react-native-navigation 8.4.2-snapshot.1905 → 8.4.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.
- package/lib/ios/RNNReactView.mm +11 -3
- package/package.json +1 -1
package/lib/ios/RNNReactView.mm
CHANGED
|
@@ -78,9 +78,17 @@
|
|
|
78
78
|
- (void)surface:(__unused RCTSurface *)surface didChangeStage:(RCTSurfaceStage)stage {
|
|
79
79
|
RCTExecuteOnMainQueue(^{
|
|
80
80
|
[super surface:surface didChangeStage:stage];
|
|
81
|
-
[
|
|
81
|
+
[[NSNotificationCenter defaultCenter] addObserver:self
|
|
82
|
+
selector:@selector(contentDidAppear:)
|
|
83
|
+
name:RCTContentDidAppearNotification
|
|
84
|
+
object:nil];
|
|
82
85
|
});
|
|
83
86
|
}
|
|
87
|
+
|
|
88
|
+
- (void)contentDidAppear:(NSNotification *)notification {
|
|
89
|
+
[self reactViewReady];
|
|
90
|
+
}
|
|
91
|
+
|
|
84
92
|
#else
|
|
85
93
|
|
|
86
94
|
- (void)contentDidAppear:(NSNotification *)notification {
|
|
@@ -96,9 +104,9 @@
|
|
|
96
104
|
_reactViewReadyBlock();
|
|
97
105
|
_reactViewReadyBlock = nil;
|
|
98
106
|
}
|
|
99
|
-
|
|
107
|
+
|
|
100
108
|
[[NSNotificationCenter defaultCenter] removeObserver:self];
|
|
101
|
-
|
|
109
|
+
|
|
102
110
|
}
|
|
103
111
|
|
|
104
112
|
#pragma mark - RNNComponentProtocol
|