mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
280e4ce4fe
Summary: Instead of using `.prettierrc` to ignore the files sync'd from React, replace `format` with `noformat`. This is necessary because currently, the version of Prettier used in React Native (v2.4.1) differs from the version used in React (v1.19.1). We can revert this when React is upgraded. Changelog: [Internal] Reviewed By: ShikaSD Differential Revision: D32129937 fbshipit-source-id: ca3b379edd732670a9a0b1b20b3f31bdad4b74aa
37 lines
1.0 KiB
JavaScript
37 lines
1.0 KiB
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @noformat
|
|
* @flow strict-local
|
|
* @generated SignedSource<<4f1549884fbe8fc2aea495692e3f665d>>
|
|
*
|
|
* This file was sync'd from the facebook/react repository.
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
import {ReactNativeViewConfigRegistry} from 'react-native/Libraries/ReactPrivate/ReactNativePrivateInterface';
|
|
import {type ViewConfig} from './ReactNativeTypes';
|
|
|
|
const {register} = ReactNativeViewConfigRegistry;
|
|
|
|
/**
|
|
* Creates a renderable ReactNative host component.
|
|
* Use this method for view configs that are loaded from UIManager.
|
|
* Use createReactNativeComponentClass() for view configs defined within JavaScript.
|
|
*
|
|
* @param {string} config iOS View configuration.
|
|
* @private
|
|
*/
|
|
const createReactNativeComponentClass = function(
|
|
name: string,
|
|
callback: () => ViewConfig,
|
|
): string {
|
|
return register(name, callback);
|
|
};
|
|
|
|
module.exports = createReactNativeComponentClass;
|