hunk.code_window:       }
       }, Platform.OS === 'android' ? 500 : 16);
     };
     _handlePressCancel = () => {
       this.props.navigation.dismiss();
     };
   }
   const BOX_MARGIN = 30;
  
hunk.labels: keep keep keep keep keep replace keep keep keep keep
hunk.after_edit:     this.props.navigation.goBack(null);
  
hunk.file_path: js/screens/QRCodeScreen.android.js
hunk.type: replace
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 "ABI24_0_0RCTWrapperViewController.h"
  
  #import <UIKit/UIScrollView.h>
  
  #import "ABI24_0_0RCTEventDispatcher.h"
  #import "ABI24_0_0RCTNavItem.h"
  #import "ABI24_0_0RCTUtils.h"
  #import "ABI24_0_0RCTViewControllerProtocol.h"
  #import "UIView+ReactABI24_0_0.h"
  #import "ABI24_0_0RCTAutoInsetsProtocol.h"
  
  @implementation ABI24_0_0RCTWrapperViewController
  {
    UIView *_wrapperView;
    UIView *_contentView;
    ABI24_0_0RCTEventDispatcher *_eventDispatcher;
    CGFloat _previousTopLayoutLength;
    CGFloat _previousBottomLayoutLength;
  }
  
  @synthesize currentTopLayoutGuide = _currentTopLayoutGuide;
  @synthesize currentBottomLayoutGuide = _currentBottomLayoutGuide;
  
  - (instancetype)initWithContentView:(UIView *)contentView
  {
    ABI24_0_0RCTAssertParam(contentView);
  
    if ((self = [super initWithNibName:nil bundle:nil])) {
      _contentView = contentView;
      self.automaticallyAdjustsScrollViewInsets = NO;
    }
    return self;
  }
  
  - (instancetype)initWithNavItem:(ABI24_0_0RCTNavItem *)navItem
  {
    if ((self = [self initWithContentView:navItem])) {
      _navItem = navItem;
    }
    return self;
  }
  
  ABI24_0_0RCT_NOT_IMPLEMENTED(- (instancetype)initWithNibName:(NSString *)nn bundle:(NSBundle *)nb)
  ABI24_0_0RCT_NOT_IMPLEMENTED(- (instancetype)initWithCoder:(NSCoder *)aDecoder)
  
  - (void)viewWillLayoutSubviews
  {
    [super viewWillLayoutSubviews];
  
    _currentTopLayoutGuide = self.topLayoutGuide;
    _currentBottomLayoutGuide = self.bottomLayoutGuide;
  }
  
  static BOOL ABI24_0_0RCTFindScrollViewAndRefreshContentInsetInView(UIView *view)
  {
    if ([view conformsToProtocol:@protocol(ABI24_0_0RCTAutoInsetsProtocol)]) {
      [(id <ABI24_0_0RCTAutoInsetsProtocol>) view refreshContentInset];
      return YES;
    }
    for (UIView *subview in view.subviews) {
      if (ABI24_0_0RCTFindScrollViewAndRefreshContentInsetInView(subview)) {
        return YES;
      }
    }
    return NO;
  }
  
  - (void)viewDidLayoutSubviews
  {
    [super viewDidLayoutSubviews];
  
    if (_previousTopLayoutLength != _currentTopLayoutGuide.length ||
        _previousBottomLayoutLength != _currentBottomLayoutGuide.length) {
      ABI24_0_0RCTFindScrollViewAndRefreshContentInsetInView(_contentView);
      _previousTopLayoutLength = _currentTopLayoutGuide.length;
      _previousBottomLayoutLength = _currentBottomLayoutGuide.length;
    }
  }
  
  static UIView *ABI24_0_0RCTFindNavBarShadowViewInView(UIView *view)
  {
    if ([view isKindOfClass:[UIImageView class]] && view.bounds.size.height <= 1) {
      return view;
    }
    for (UIView *subview in view.subviews) {
      UIView *shadowView = ABI24_0_0RCTFindNavBarShadowViewInView(subview);
      if (shadowView) {
        return shadowView;
      }
    }
    return nil;
  }
  
  - (void)viewWillAppear:(BOOL)animated
  {
    [super viewWillAppear:animated];
  
    // TODO: find a way to make this less-tightly coupled to navigation controller
    if ([self.parentViewController isKindOfClass:[UINavigationController class]])
    {
      [self.navigationController
       setNavigationBarHidden:_navItem.navigationBarHidden
       animated:animated];
  
      UINavigationBar *bar = self.navigationController.navigationBar;
      bar.barTintColor = _navItem.barTintColor;
      bar.tintColor = _navItem.tintColor;
      bar.translucent = _navItem.translucent;
  #if !TARGET_OS_TV
      bar.barStyle = _navItem.barStyle;
  #endif
      bar.titleTextAttributes = _navItem.titleTextColor ? @{
        NSForegroundColorAttributeName: _navItem.titleTextColor
      } : nil;
  
      ABI24_0_0RCTFindNavBarShadowViewInView(bar).hidden = _navItem.shadowHidden;
  
      UINavigationItem *item = self.navigationItem;
      item.title = _navItem.title;
      item.titleView = _navItem.titleImageView;
  #if !TARGET_OS_TV
      item.backBarButtonItem = _navItem.backButtonItem;
  #endif //TARGET_OS_TV
      item.leftBarButtonItem = _navItem.leftButtonItem;
      item.rightBarButtonItem = _navItem.rightButtonItem;
    }
  }
  
  - (void)loadView
  {
    // Add a wrapper so that the wrapper view managed by the
    // UINavigationController doesn't end up resetting the frames for
    //`contentView` which is a ReactABI24_0_0-managed view.
    _wrapperView = [[UIView alloc] initWithFrame:_contentView.bounds];
    [_wrapperView addSubview:_contentView];
    self.view = _wrapperView;
  }
  
  - (void)didMoveToParentViewController:(UIViewController *)parent
  {
    // There's no clear setter for navigation controllers, but did move to parent
    // view controller provides the desired effect. This is called after a pop
    // finishes, be it a swipe to go back or a standard tap on the back button
    [super didMoveToParentViewController:parent];
    if (parent == nil || [parent isKindOfClass:[UINavigationController class]]) {
      [self.navigationListener wrapperViewController:self
                       didMoveToNavigationController:(UINavigationController *)parent];
    }
  }
  
  @end
  