RCTInputAccessoryShadowView.m 520 B

1234567891011121314151617181920
  1. /*
  2. * Copyright (c) Facebook, Inc. and its affiliates.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. */
  7. #import <React/RCTInputAccessoryShadowView.h>
  8. #import <React/RCTUtils.h>
  9. @implementation RCTInputAccessoryShadowView
  10. - (void)insertReactSubview:(RCTShadowView *)subview atIndex:(NSInteger)atIndex
  11. {
  12. [super insertReactSubview:subview atIndex:atIndex];
  13. subview.width = (YGValue) { RCTScreenSize().width, YGUnitPoint };
  14. }
  15. @end