[ReactNative] s/View.stylePropType/View.propTypes.style/

This commit is contained in:
Christopher Chedeau
2015-03-09 09:29:05 -07:00
parent 0f2a2e73f0
commit f61e4184a8
4 changed files with 5 additions and 9 deletions

View File

@@ -48,10 +48,6 @@ var stylePropType = StyleSheetPropType(ViewStylePropTypes);
* `StyleSheet`s to be combined dynamically. See `StyleSheet.js` for more info.
*/
var View = React.createClass({
statics: {
stylePropType,
},
mixins: [NativeMethodsMixin],
/**
@@ -140,12 +136,12 @@ var RKView = createReactIOSNativeComponentClass({
validAttributes: ReactIOSViewAttributes.RKView,
uiViewClassName: 'RCTView',
});
RKView.propTypes = View.propTypes;
var ViewToExport = RKView;
if (__DEV__) {
ViewToExport = View;
}
ViewToExport.stylePropType = stylePropType;
module.exports = ViewToExport;