diff --git a/React/Views/RCTComponentData.m b/React/Views/RCTComponentData.m index 7ebe7673e75fd7..44bde138c4859d 100644 --- a/React/Views/RCTComponentData.m +++ b/React/Views/RCTComponentData.m @@ -430,7 +430,7 @@ - (void)setProps:(NSDictionary *)props forShadowView:(RCTShadowV @"propTypes": propTypes, @"directEvents": directEvents, @"bubblingEvents": bubblingEvents, - @"baseModuleName": superClass == [NSObject class] ? [NSNull null] : moduleNameForClass(superClass) + @"baseModuleName": superClass == [NSObject class] ? (id)kCFNull : moduleNameForClass(superClass), }; }