react-native icon indicating copy to clipboard operation
react-native copied to clipboard

[RCTConvert] +[RCTConvert UIColor:] is not thread safe

Open jwyld opened this issue 11 years ago • 1 comments

If there are multiple contexts each using their own thread, it's possible to get multiple entering into +[RCTConvert UIColor:] at close to the same time. colorCache is an unprotected, static cache. As a result, all threads may attempt to adjust it at RCTConvert.m:586. NSMutableDictionary is not prepared for such.

jwyld avatar Jun 01 '15 21:06 jwyld

Color conversion now happens on the native side.

javache avatar Oct 17 '15 10:10 javache