RCTTVView.h 748 B

12345678910111213141516171819202122232425262728293031
  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 <Foundation/Foundation.h>
  8. #import <UIKit/UIKit.h>
  9. #import <React/RCTView.h>
  10. // A RCTView with additional properties and methods for user interaction using the Apple TV focus engine.
  11. @interface RCTTVView : RCTView
  12. /**
  13. * TV event handlers
  14. */
  15. @property (nonatomic, assign) BOOL isTVSelectable; // True if this view is TV-focusable
  16. /**
  17. * Properties for Apple TV focus parallax effects
  18. */
  19. @property (nonatomic, copy) NSDictionary *tvParallaxProperties;
  20. /**
  21. * TV preferred focus
  22. */
  23. @property (nonatomic, assign) BOOL hasTVPreferredFocus;
  24. @end