diff --git a/React/Base/RCTConvert.m b/React/Base/RCTConvert.m index 3c9143c17d29ba..854daaf7543d24 100644 --- a/React/Base/RCTConvert.m +++ b/React/Base/RCTConvert.m @@ -595,8 +595,8 @@ + (UIColor *)UIColor:(id)json color = [UIColor whiteColor]; } - // Cache and return - if (json) { + // Cache if possible and return + if (json && [colorCache count] < 204) { colorCache[json] = color; } return color;