[ReactNative] rename nativeProps const to NativeProps

This commit is contained in:
Spencer Ahrens
2015-05-26 19:25:11 -07:00
parent 0689c0790e
commit a4442e4576
3 changed files with 5 additions and 5 deletions

View File

@@ -43,13 +43,13 @@ function requireNativeComponent(
wrapperComponent: ?Function
): Function {
var viewConfig = RCTUIManager[viewName];
if (!viewConfig || !viewConfig.nativeProps) {
if (!viewConfig || !viewConfig.NativeProps) {
warning(false, 'Native component for "%s" does not exist', viewName);
return UnimplementedView;
}
var nativeProps = {
...RCTUIManager.RCTView.nativeProps,
...viewConfig.nativeProps,
...RCTUIManager.RCTView.NativeProps,
...viewConfig.NativeProps,
};
viewConfig.uiViewClassName = viewName;
viewConfig.validAttributes = {};