mirror of
https://github.com/status-im/react-native.git
synced 2025-01-28 02:04:55 +00:00
Debug only code were leaking into release builds on iOS. (#21232)
Summary: RCT_DEBUG is always defined - it is just rather 0 or 1 so ```#ifndef RCT_DEBUG is always true``` Pull Request resolved: https://github.com/facebook/react-native/pull/21232 Differential Revision: D9982316 Pulled By: hramos fbshipit-source-id: 5408bfcf95a6ed2beae38217a6ad1ee43950857d
This commit is contained in:
parent
40bcc38d91
commit
d1ff0b0cc5
@ -810,7 +810,7 @@ static void RCTGetRGBAColorComponents(CGColorRef color, CGFloat rgba[4])
|
||||
default:
|
||||
{
|
||||
|
||||
#ifdef RCT_DEBUG
|
||||
#if RCT_DEBUG
|
||||
//unsupported format
|
||||
RCTLogError(@"Unsupported color model: %i", model);
|
||||
#endif
|
||||
|
@ -654,7 +654,7 @@ struct RCTInstanceCallback : public InstanceCallback {
|
||||
NSArray<RCTModuleData *> *moduleDataById = [self registerModulesForClasses:modules];
|
||||
|
||||
if (lazilyDiscovered) {
|
||||
#ifdef RCT_DEBUG
|
||||
#if RCT_DEBUG
|
||||
// Lazily discovered modules do not require instantiation here,
|
||||
// as they are not allowed to have pre-instantiated instance
|
||||
// and must not require the main queue.
|
||||
|
Loading…
x
Reference in New Issue
Block a user