RCTInputAccessoryViewManager.m 702 B

12345678910111213141516171819202122232425262728293031323334
  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/RCTInputAccessoryViewManager.h>
  8. #import <React/RCTInputAccessoryShadowView.h>
  9. #import <React/RCTInputAccessoryView.h>
  10. @implementation RCTInputAccessoryViewManager
  11. RCT_EXPORT_MODULE()
  12. + (BOOL)requiresMainQueueSetup
  13. {
  14. return NO;
  15. }
  16. - (UIView *)view
  17. {
  18. return [[RCTInputAccessoryView alloc] initWithBridge:self.bridge];
  19. }
  20. - (RCTShadowView *)shadowView
  21. {
  22. return [RCTInputAccessoryShadowView new];
  23. }
  24. RCT_REMAP_VIEW_PROPERTY(backgroundColor, inputAccessoryView.backgroundColor, UIColor)
  25. @end