mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-28 12:15:37 +08:00
[ReactNative] s/View.stylePropType/View.propTypes.style/
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user