mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-28 16:34:49 +08:00
Fabric: Using templates to generate convertRawProp and debugStringConvertibleItem functions
Summary: This diff opens a diffstack where we migrate the generation of all prop conversions (convertRawProp) and pretty-printing (debugStringConvertibleItem) functions to C++ templates (instead of using `#define`s). So, this diff implements base versions of those functions as templated functions. For now we still need #define-based version, but eventually, we will get rid of it. Reviewed By: fkgozali Differential Revision: D7958247 fbshipit-source-id: 24346297c1bd17e8054758f0eb84698eebfa21e2
This commit is contained in:
committed by
Facebook Github Bot
parent
2b827c9f13
commit
03fb77cc95
@@ -8,6 +8,7 @@
|
||||
#include "ParagraphLocalData.h"
|
||||
|
||||
#include <fabric/debug/debugStringConvertibleUtils.h>
|
||||
#include <fabric/attributedstring/debugStringConvertibleUtils.h>
|
||||
|
||||
namespace facebook {
|
||||
namespace react {
|
||||
@@ -38,7 +39,7 @@ std::string ParagraphLocalData::getDebugName() const {
|
||||
|
||||
SharedDebugStringConvertibleList ParagraphLocalData::getDebugProps() const {
|
||||
return {
|
||||
debugStringConvertibleItem("attributedString", attributedString_)
|
||||
debugStringConvertibleItem("attributedString", attributedString_, "")
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user