RCTSafeAreaViewNativeComponent.js 796 B

1234567891011121314151617181920212223242526272829
  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 {ViewProps} from '../View/ViewPropTypes';
  12. import type {WithDefault} from '../../Types/CodegenTypes';
  13. import codegenNativeComponent from '../../Utilities/codegenNativeComponent';
  14. import type {HostComponent} from '../../Renderer/shims/ReactNativeTypes';
  15. type NativeProps = $ReadOnly<{|
  16. ...ViewProps,
  17. // Props
  18. emulateUnlessSupported?: WithDefault<boolean, false>,
  19. |}>;
  20. export default (codegenNativeComponent<NativeProps>('SafeAreaView', {
  21. paperComponentName: 'RCTSafeAreaView',
  22. interfaceOnly: true,
  23. }): HostComponent<NativeProps>);