Add C++ Turbo Module enum Event Emitter example (#46049)

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

## Changelog:

[General] [Added] - Add C++ Turbo Module enum Event Emitter example

Reviewed By: kentwilliam

Differential Revision: D61336742

fbshipit-source-id: 81ac54020f4d88dc3c1235541d613a59235069a3
This commit is contained in:
Christoph Purrer
2024-08-19 08:26:20 -07:00
committed by Facebook GitHub Bot
parent 0e805a953d
commit 6340662d4f
3 changed files with 7 additions and 0 deletions
@@ -174,6 +174,7 @@ void NativeCxxModuleExample::voidFunc(jsi::Runtime& rt) {
ObjectStruct{1, "two", std::nullopt},
ObjectStruct{3, "four", std::nullopt},
ObjectStruct{5, "six", std::nullopt}});
emitOnEvent(NativeCxxModuleExampleEnumNone::NA);
}
void NativeCxxModuleExample::setMenu(jsi::Runtime& rt, MenuItem menuItem) {