Allow map type objects in Java/ObjC TM EventEmitter (#45271)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/45271

Changelog: [Internal] Allow map type objects in Java/ObjC TM EventEmitter

Reviewed By: rshest

Differential Revision: D59360044

fbshipit-source-id: 6fce094586ed2ad55a0d83a8a83ff554e2ba000e
This commit is contained in:
Christoph Purrer
2024-07-05 12:37:47 -07:00
committed by Facebook GitHub Bot
parent 504240caad
commit 85dc2e393f
8 changed files with 36 additions and 0 deletions
@@ -22,6 +22,7 @@ function getEventEmitterTypeObjCType(
return 'NSNumber *_Nonnull';
case 'BooleanTypeAnnotation':
return 'BOOL';
case 'GenericObjectTypeAnnotation':
case 'ObjectTypeAnnotation':
case 'TypeAliasTypeAnnotation':
return 'NSDictionary *';