UnimplementedNativeViewNativeComponent.js 805 B

12345678910111213141516171819202122232425262728
  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. 'use strict';
  11. import type {WithDefault} from '../../Types/CodegenTypes';
  12. import type {ViewProps} from '../View/ViewPropTypes';
  13. import codegenNativeComponent from '../../Utilities/codegenNativeComponent';
  14. import type {HostComponent} from '../../Renderer/shims/ReactNativeTypes';
  15. type NativeProps = $ReadOnly<{|
  16. ...ViewProps,
  17. name?: WithDefault<string, ''>,
  18. |}>;
  19. // NOTE: This component is not implemented in paper
  20. // Do not require this file in paper builds
  21. export default (codegenNativeComponent<NativeProps>(
  22. 'UnimplementedNativeView',
  23. ): HostComponent<NativeProps>);