Support mixed props for components

Summary:
Changelog:
[Changed][General] - Support mixed props for components in codegen

Reviewed By: rickhanlonii

Differential Revision: D43894460

fbshipit-source-id: e5faf2f83e6829170cdce550e923c3c09ddff0b0
This commit is contained in:
Genki Kondo
2023-03-19 16:47:22 -07:00
committed by Facebook GitHub Bot
parent e5b97f0f13
commit 0ae5e50e37
47 changed files with 949 additions and 4 deletions
@@ -127,6 +127,8 @@ function getJavaValueForProp(
case 'Int32EnumTypeAnnotation':
addNullable(imports);
return '@Nullable Integer value';
case 'MixedTypeAnnotation':
return 'Dynamic value';
default:
(typeAnnotation: empty);
throw new Error('Received invalid typeAnnotation');