Browse Source

ScreenVisibilityListener now called on disappear methods (#2822)

fixes https://github.com/wix/react-native-navigation/issues/1771
Nicolas Bonduel 6 years ago
parent
commit
c239985eb3
1 changed files with 0 additions and 2 deletions
  1. 0
    2
      ios/RCCViewController.m

+ 0
- 2
ios/RCCViewController.m View File

235
 
235
 
236
 - (void)sendGlobalScreenEvent:(NSString *)eventName endTimestampString:(NSString *)endTimestampStr shouldReset:(BOOL)shouldReset {
236
 - (void)sendGlobalScreenEvent:(NSString *)eventName endTimestampString:(NSString *)endTimestampStr shouldReset:(BOOL)shouldReset {
237
   
237
   
238
-  if (!self.commandType) return;
239
-  
240
   if ([self.view isKindOfClass:[RCTRootView class]]){
238
   if ([self.view isKindOfClass:[RCTRootView class]]){
241
     NSString *screenName = [((RCTRootView*)self.view) moduleName];
239
     NSString *screenName = [((RCTRootView*)self.view) moduleName];
242
     
240