Prop parsing: always require explicit default argument to convertRawProp

Summary:
Having automatic defaults/an optional arg for `convertRawProp` has caused way more problems than it is worth. Remove the default argument.

Changelog: [Internal]

Reviewed By: shergin

Differential Revision: D19151594

fbshipit-source-id: 839ec8d138b2c3c083f221a2871582454004648c
This commit is contained in:
Joshua Gross
2019-12-18 15:02:09 -08:00
committed by Facebook Github Bot
parent 7980615d37
commit bb5622dd89
11 changed files with 220 additions and 96 deletions
@@ -222,7 +222,7 @@ AndroidTextInputProps::AndroidTextInputProps(
{0})),
text(convertRawProp(rawProps, "text", sourceProps.text, {})),
paragraphAttributes(
convertRawProp(rawProps, sourceProps.paragraphAttributes)) {}
convertRawProp(rawProps, sourceProps.paragraphAttributes, {})) {}
// TODO T53300085: support this in codegen; this was hand-written
folly::dynamic AndroidTextInputProps::getDynamic() const {