Fabric: Debug Pretty-printing is now debug only feature

Summary: That should save us some app size kilobytes.

Reviewed By: mdvacca

Differential Revision: D10081499

fbshipit-source-id: 2b950768c609b412f9be332c22b6b1e96657e5ea
This commit is contained in:
Valentin Shergin
2018-09-28 10:24:38 -07:00
committed by Facebook Github Bot
parent 02ad56f541
commit e3b61f53bd
39 changed files with 102 additions and 31 deletions

View File

@@ -20,6 +20,8 @@
namespace facebook {
namespace react {
#if RN_DEBUG_STRING_CONVERTIBLE
inline std::string toString(const std::string &value) { return value; }
inline std::string toString(const int &value) { return folly::to<std::string>(value); }
inline std::string toString(const bool &value) { return folly::to<std::string>(value); }
@@ -55,5 +57,7 @@ inline SharedDebugStringConvertible debugStringConvertibleItem(std::string name,
return debugStringConvertibleItem(name, value.getDebugDescription(), defaultValue);
}
#endif
} // namespace react
} // namespace facebook