hunk.code_window: import com.facebook.react.uimanager.UIManagerModule;
   import com.facebook.react.uimanager.events.RCTEventEmitter;
   import com.facebook.react.uimanager.events.TouchEvent;
   import com.facebook.react.uimanager.events.TouchEventCoalescingKeyHelper;
  
hunk.labels: add keep keep keep
hunk.after_edit: import com.facebook.react.uimanager.events.EventDispatcher;
  
hunk.file_path: android/app/src/main/java/versioned/host/exp/exponent/modules/api/components/svg/RNSVGSvgView.java
hunk.type: add
file: /**
   * Copyright (c) 2015-present, Facebook, Inc.
   * All rights reserved.
   *
   * This source code is licensed under the BSD-style license found in the
   * LICENSE file in the root directory of this source tree. An additional grant
   * of patent rights can be found in the PATENTS file in the same directory.
   */
  
  #import "ABI5_0_0ARTPattern.h"
  
  #import "ABI5_0_0RCTConvert+ART.h"
  #import "ABI5_0_0RCTLog.h"
  
  @implementation ABI5_0_0ARTPattern
  {
    CGImageRef _image;
    CGRect _rect;
  }
  
  - (instancetype)initWithArray:(NSArray<id /* imagesource + numbers */> *)array
  {
    if ((self = [super initWithArray:array])) {
      if (array.count < 6) {
        ABI5_0_0RCTLogError(@"-[%@ %@] expects 6 elements, received %@",
                    self.class, NSStringFromSelector(_cmd), array);
        return nil;
      }
      _image = CGImageRetain([ABI5_0_0RCTConvert CGImage:array[1]]);
      _rect = [ABI5_0_0RCTConvert CGRect:array offset:2];
    }
    return self;
  }
  
  - (void)dealloc
  {
    CGImageRelease(_image);
  }
  
  // Note: This could use applyFillColor with a pattern. This could be more efficient but
  // to do that, we need to calculate our own user space CTM.
  
  - (void)paint:(CGContextRef)context
  {
    CGContextDrawTiledImage(context, _rect, _image);
  }
  
  
  
  @end
  