hunk.code_window:     eventListeners[EventName.ON_NEW_INTENT] = EventListenerWithPayload<Intent>(EventName.ON_NEW_INTENT) { body(it) }
     }
     inline fun onActivityResult(crossinline body: (Activity, OnActivityResultPayload) -> Unit) {
       eventListeners[EventName.ON_ACTIVITY_RESULT] =
         EventListenerWithSenderAndPayload<Activity, OnActivityResultPayload>(EventName.ON_ACTIVITY_RESULT) { sender, payload -> body(sender, payload) }
  
hunk.labels: keep keep add keep keep keep
hunk.after_edit:   /**
      * Creates module's lifecycle listener that is called right after the activity has received a result.
      */
  
hunk.file_path: packages/expo-modules-core/android/src/main/java/expo/modules/kotlin/modules/ModuleDefinitionBuilder.kt
hunk.type: add
file: /*
   * Copyright (c) Facebook, Inc. and its affiliates.
   *
   * This source code is licensed under the MIT license found in the
   * LICENSE file in the root directory of this source tree.
   */
  
  #import "ABI42_0_0RCTLegacyViewManagerInteropCoordinatorAdapter.h"
  #import <ABI42_0_0React/ABI42_0_0UIView+React.h>
  
  @implementation ABI42_0_0RCTLegacyViewManagerInteropCoordinatorAdapter {
    ABI42_0_0RCTLegacyViewManagerInteropCoordinator *_coordinator;
    NSInteger _tag;
  }
  
  - (instancetype)initWithCoordinator:(ABI42_0_0RCTLegacyViewManagerInteropCoordinator *)coordinator ABI42_0_0ReactTag:(NSInteger)tag
  {
    if (self = [super init]) {
      _coordinator = coordinator;
      _tag = tag;
    }
    return self;
  }
  
  - (void)dealloc
  {
    [_paperView removeFromSuperview];
    [_coordinator removeObserveForTag:_tag];
  }
  
  - (UIView *)paperView
  {
    if (!_paperView) {
      _paperView = _coordinator.paperView;
      _paperView.ABI42_0_0ReactTag = [NSNumber numberWithInteger:_tag];
  
      __weak __typeof(self) weakSelf = self;
      [_coordinator addObserveForTag:_tag
                          usingBlock:^(std::string eventName, folly::dynamic event) {
                            if (weakSelf.eventInterceptor) {
                              weakSelf.eventInterceptor(eventName, event);
                            }
                          }];
    }
    return _paperView;
  }
  
  - (void)setProps:(const folly::dynamic &)props
  {
    [_coordinator setProps:props forView:self.paperView];
  }
  
  - (void)handleCommand:(NSString *)commandName args:(NSArray *)args
  {
    [_coordinator handleCommand:commandName args:args ABI42_0_0ReactTag:_tag];
  }
  
  @end
  