mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Delete ReactNativeStack 🎉 🎉 🎉 (#10511)
* 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
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
|
||||
'use strict';
|
||||
|
||||
const ReactNativeFeatureFlags = require('ReactNativeFeatureFlags');
|
||||
const ReactNativeViewConfigRegistry = require('ReactNativeViewConfigRegistry');
|
||||
|
||||
// See also ReactNativeBaseComponent
|
||||
export type ReactNativeBaseComponentViewConfig = {
|
||||
@@ -21,6 +21,14 @@ export type ReactNativeBaseComponentViewConfig = {
|
||||
propTypes?: Object,
|
||||
};
|
||||
|
||||
module.exports = ReactNativeFeatureFlags.useFiber
|
||||
? require('createReactNativeComponentClassFiber')
|
||||
: require('createReactNativeComponentClassStack');
|
||||
/**
|
||||
* @param {string} config iOS View configuration.
|
||||
* @private
|
||||
*/
|
||||
const createReactNativeComponentClass = function(
|
||||
viewConfig: ReactNativeBaseComponentViewConfig,
|
||||
): string {
|
||||
return ReactNativeViewConfigRegistry.register(viewConfig);
|
||||
};
|
||||
|
||||
module.exports = createReactNativeComponentClass;
|
||||
|
||||
Reference in New Issue
Block a user