mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
[react-packager][streamline oss] Move open sourced JS source to react-native-github
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
/**
|
||||
* Copyright 2004-present Facebook. All Rights Reserved.
|
||||
*
|
||||
* @providesModule createReactIOSNativeComponentClass
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
|
||||
var ReactElement = require('ReactElement');
|
||||
var ReactLegacyElement = require('ReactLegacyElement');
|
||||
var ReactIOSNativeComponent = require('ReactIOSNativeComponent');
|
||||
|
||||
/**
|
||||
* @param {string} config iOS View configuration.
|
||||
* @private
|
||||
*/
|
||||
var createReactIOSNativeComponentClass = function(viewConfig) {
|
||||
var Constructor = function(props) {
|
||||
};
|
||||
Constructor.displayName = viewConfig.uiViewClassName;
|
||||
Constructor.prototype = new ReactIOSNativeComponent(viewConfig);
|
||||
Constructor.prototype.constructor = Constructor;
|
||||
|
||||
return ReactLegacyElement.wrapFactory(
|
||||
ReactElement.createFactory(Constructor)
|
||||
);
|
||||
};
|
||||
|
||||
module.exports = createReactIOSNativeComponentClass;
|
||||
Reference in New Issue
Block a user