react-native code-gen > C++ TurboModules enum example (#36083)

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

Changelog: [Internal]

Reviewed By: javache

Differential Revision: D43036612

fbshipit-source-id: fc70650bc4ba48d11f489556d1290ae9e7e58016
This commit is contained in:
Christoph Purrer
2023-02-08 20:24:28 -08:00
committed by Facebook GitHub Bot
parent 2e3f55aced
commit 292a9904c4
9 changed files with 53 additions and 10 deletions
@@ -33,7 +33,7 @@ ConstantsStruct NativeCxxModuleExample::getConstants(jsi::Runtime &rt) {
return ConstantsStruct{true, 69, "react-native"};
}
int32_t NativeCxxModuleExample::getEnum(jsi::Runtime &rt, int32_t arg) {
EnumInt NativeCxxModuleExample::getEnum(jsi::Runtime &rt, EnumInt arg) {
return arg;
}