From a3b2f5d05ffaa4fd931a288828e1f6618fac5763 Mon Sep 17 00:00:00 2001 From: Kevin Gozali Date: Tue, 14 Aug 2018 18:14:27 -0700 Subject: [PATCH] iOS downgrade error to warning when invoking native module with invalid bridge Summary: A bunch of flows including JS reload and e2e tests seem to hit the race condition, causing redbox. For now, make it a warning to unblock. Differential Revision: D9327418 fbshipit-source-id: a72b378d88f7566268fd9415fbd34225c8b931e7 --- React/CxxModule/RCTNativeModule.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/React/CxxModule/RCTNativeModule.mm b/React/CxxModule/RCTNativeModule.mm index 8cf3b74db43..00a03b37d97 100644 --- a/React/CxxModule/RCTNativeModule.mm +++ b/React/CxxModule/RCTNativeModule.mm @@ -79,8 +79,8 @@ void RCTNativeModule::invoke(unsigned int methodId, folly::dynamic &¶ms, int dispatch_async(queue, block); } } else { - RCTLogError(@"Attempted to invoke `%u` (method ID) on `%@` (NativeModule name) with an invalid bridge.", - methodId, m_moduleData.name); + RCTLogWarn(@"Attempted to invoke `%u` (method ID) on `%@` (NativeModule name) with an invalid bridge.", + methodId, m_moduleData.name); } }