mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
2fa38ac1cc
* Removed createReactNativeComponentClassStack and renamed createReactNativeComponentClassFiber => createReactNativeComponentClass * Removed findNumericNodeHandleStack and renamed findNumericNodeHandleFiber => findNumericNodeHandle * Renamed ReactNativeFiberEntry => ReactNativeEntry * Removed all references to ReactNativeFeatureFlags and RN stack * Removed severl RN modules that are no longer used * Renamed ReactNativeEntry => ReactNativeFiberEntry for now. We'll probably remove 'fiber' references later * Update build results json * Deleted snapshot * Re-add accidentally deleted test * Remove now-unnecessary hack in test * Fix lint * RN findNodeHandle no longer adds props directly to read-only owner (#10520) * Added ReactNativeMount-test snapshot for 'renders and reorders children' test
35 lines
934 B
JavaScript
35 lines
934 B
JavaScript
/**
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the BSD-style license found in the
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
*
|
|
* @providesModule createReactNativeComponentClass
|
|
* @flow
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
const ReactNativeViewConfigRegistry = require('ReactNativeViewConfigRegistry');
|
|
|
|
// See also ReactNativeBaseComponent
|
|
export type ReactNativeBaseComponentViewConfig = {
|
|
validAttributes: Object,
|
|
uiViewClassName: string,
|
|
propTypes?: Object,
|
|
};
|
|
|
|
/**
|
|
* @param {string} config iOS View configuration.
|
|
* @private
|
|
*/
|
|
const createReactNativeComponentClass = function(
|
|
viewConfig: ReactNativeBaseComponentViewConfig,
|
|
): string {
|
|
return ReactNativeViewConfigRegistry.register(viewConfig);
|
|
};
|
|
|
|
module.exports = createReactNativeComponentClass;
|