mirror of
https://github.com/react/react-native.git
synced 2026-09-29 16:58:04 +08:00
Revert D77143018: Cleanup react-native-codegen DEFS
Differential Revision: D77143018 Original commit changeset: 06ec43ce5149 Original Phabricator Diff: D77143018 fbshipit-source-id: cec53068f88548c4494da315914763beb6730573
This commit is contained in:
committed by
Facebook GitHub Bot
parent
df6ba3f155
commit
eb61e6f783
@@ -65,15 +65,15 @@ const TestTemplate = ({
|
||||
propValue: string,
|
||||
}) => `
|
||||
TEST(${componentName}_${testName}, etc) {
|
||||
RawPropsParser propParser{};
|
||||
auto propParser = RawPropsParser();
|
||||
propParser.prepare<${componentName}>();
|
||||
${componentName} sourceProps{};
|
||||
RawProps rawProps(folly::dynamic::object("${propName}", ${propValue}));
|
||||
auto const &sourceProps = ${componentName}();
|
||||
auto const &rawProps = RawProps(folly::dynamic::object("${propName}", ${propValue}));
|
||||
|
||||
ContextContainer contextContainer{};
|
||||
PropsParserContext parserContext{-1, contextContainer};
|
||||
|
||||
rawProps.parse(propParser);
|
||||
rawProps.parse(propParser, parserContext);
|
||||
${componentName}(parserContext, sourceProps, rawProps);
|
||||
}
|
||||
`;
|
||||
|
||||
+240
-240
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user