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:
Brian Vaughn
2017-08-23 15:53:55 -07:00
committed by GitHub
parent 34780da5c8
commit 2fa38ac1cc
33 changed files with 148 additions and 3586 deletions
@@ -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;