Преглед на файлове

Remove undefined rootView (#3542)

NaoyaKurahashi преди 6 години
родител
ревизия
4c20820169
променени са 1 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 4
    4
      ios/RCCViewController.m

+ 4
- 4
ios/RCCViewController.m Целия файл

205
 }
205
 }
206
 
206
 
207
 - (void)sendScreenChangedEvent:(NSString *)eventName {
207
 - (void)sendScreenChangedEvent:(NSString *)eventName {
208
-    if (self.rootView != nil) {
209
-        RCTRootView *rootView = self.rootView;
208
+    if (self.view != nil) {
209
+        RCTRootView *rootView = self.view;
210
         
210
         
211
         if (rootView.appProperties && rootView.appProperties[@"navigatorEventID"]) {
211
         if (rootView.appProperties && rootView.appProperties[@"navigatorEventID"]) {
212
             
212
             
220
 }
220
 }
221
 
221
 
222
 - (void)sendGlobalScreenEvent:(NSString *)eventName endTimestampString:(NSString *)endTimestampStr shouldReset:(BOOL)shouldReset {
222
 - (void)sendGlobalScreenEvent:(NSString *)eventName endTimestampString:(NSString *)endTimestampStr shouldReset:(BOOL)shouldReset {
223
-    if (self.rootView != nil){
224
-        RCTRootView *rootView = self.rootView;
223
+    if (self.view != nil){
224
+        RCTRootView *rootView = self.view;
225
         NSString *screenName = [rootView moduleName];
225
         NSString *screenName = [rootView moduleName];
226
         
226
         
227
         [[[RCCManager sharedInstance] getBridge].eventDispatcher sendAppEventWithName:eventName body:@
227
         [[[RCCManager sharedInstance] getBridge].eventDispatcher sendAppEventWithName:eventName body:@