Skip to content

Commit 120a417

Browse files
javachefacebook-github-bot
authored andcommitted
Cleanup react-native-codegen DEFS (#52468)
Summary: Pull Request resolved: #52468 * Re-enable tests * Simplify logic to avoid bypasses for arc focus Changelog: [Internal] Reviewed By: philIip Differential Revision: D77143018 fbshipit-source-id: 06ec43ce5149a139db78d38630191b01bc520461
1 parent 5a79ece commit 120a417

2 files changed

Lines changed: 244 additions & 244 deletions

File tree

packages/react-native-codegen/src/generators/components/GenerateTests.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,15 @@ const TestTemplate = ({
6565
propValue: string,
6666
}) => `
6767
TEST(${componentName}_${testName}, etc) {
68-
auto propParser = RawPropsParser();
68+
RawPropsParser propParser{};
6969
propParser.prepare<${componentName}>();
70-
auto const &sourceProps = ${componentName}();
71-
auto const &rawProps = RawProps(folly::dynamic::object("${propName}", ${propValue}));
70+
${componentName} sourceProps{};
71+
RawProps rawProps(folly::dynamic::object("${propName}", ${propValue}));
7272
7373
ContextContainer contextContainer{};
7474
PropsParserContext parserContext{-1, contextContainer};
7575
76-
rawProps.parse(propParser, parserContext);
76+
rawProps.parse(propParser);
7777
${componentName}(parserContext, sourceProps, rawProps);
7878
}
7979
`;

0 commit comments

Comments
 (0)