PHP WebShell

Текущая директория: /usr/lib/node_modules/bitgo/node_modules/react-native/Libraries/Components/LayoutConformance

Просмотр файла: LayoutConformanceNativeComponent.js

/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * @flow strict-local
 * @format
 */

import type {HostComponent} from '../../../src/private/types/HostComponent';
import type {ViewProps} from '../View/ViewPropTypes';

import * as NativeComponentRegistry from '../../NativeComponent/NativeComponentRegistry';

type Props = $ReadOnly<{
  mode: 'strict' | 'compatibility',
  ...ViewProps,
}>;

const LayoutConformanceNativeComponent: HostComponent<Props> =
  NativeComponentRegistry.get<Props>('LayoutConformance', () => ({
    uiViewClassName: 'LayoutConformance',
    validAttributes: {
      mode: true,
    },
  }));

export default LayoutConformanceNativeComponent;

Выполнить команду


Для локальной разработки. Не используйте в интернете!