RCTMaskedViewNativeComponent.js 590 B

123456789101112131415161718192021
  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. * @format
  8. * @flow strict-local
  9. */
  10. import type {ViewProps} from '../View/ViewPropTypes';
  11. import codegenNativeComponent from '../../Utilities/codegenNativeComponent';
  12. import type {HostComponent} from '../../Renderer/shims/ReactNativeTypes';
  13. type NativeProps = $ReadOnly<{|
  14. ...ViewProps,
  15. |}>;
  16. export default (codegenNativeComponent<NativeProps>(
  17. 'RCTMaskedView',
  18. ): HostComponent<NativeProps>);