mirror of
https://github.com/status-im/react-native.git
synced 2025-01-18 05:23:26 +00:00
418b27c36e
- [React Native] Move copyProperties and mergeHelpers to github dir | Ben Alpert - [React Native] Update core modules for React 0.13 | Ben Alpert - [React Native] Update React to v0.13.0-rc2 | Ben Alpert
31 lines
772 B
JavaScript
31 lines
772 B
JavaScript
/**
|
|
* Copyright 2004-present Facebook. All Rights Reserved.
|
|
*
|
|
* @providesModule createReactIOSNativeComponentClass
|
|
*/
|
|
|
|
"use strict";
|
|
|
|
var ReactElement = require('ReactElement');
|
|
var ReactIOSNativeComponent = require('ReactIOSNativeComponent');
|
|
|
|
/**
|
|
* @param {string} config iOS View configuration.
|
|
* @private
|
|
*/
|
|
var createReactIOSNativeComponentClass = function(viewConfig) {
|
|
var Constructor = function(element) {
|
|
this._currentElement = element;
|
|
|
|
this._rootNodeID = null;
|
|
this._renderedChildren = null;
|
|
this.previousFlattenedStyle = null;
|
|
};
|
|
Constructor.displayName = viewConfig.uiViewClassName;
|
|
Constructor.prototype = new ReactIOSNativeComponent(viewConfig);
|
|
|
|
return Constructor;
|
|
};
|
|
|
|
module.exports = createReactIOSNativeComponentClass;
|