mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Add device event emit test for the sample C++ TurboModule (#36278)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/36278 [Changelog][Internal] The diff creates a test clause for [TurboModule::emitDeviceEvent C++ API for TurboModules](https://www.internalfb.com/code/fbsource/[929870c905c8fe68cb330ce96bda7eb703bb6ae6]/xplat/js/react-native-github/ReactCommon/react/nativemodule/core/ReactCommon/TurboModule.h?lines=90), which can be seen in either Catalyst or RNTester. Reviewed By: cipolleschi Differential Revision: D43466327 fbshipit-source-id: ff4c111b4beaab72b13d2bd89ed03023c9c7b3cf
This commit is contained in:
committed by
Facebook GitHub Bot
parent
bf03e86bc7
commit
e106a62b1a
@@ -121,6 +121,8 @@ class NativeCxxModuleExample
|
||||
AsyncPromise<std::string> getValueWithPromise(jsi::Runtime &rt, bool error);
|
||||
|
||||
void voidFunc(jsi::Runtime &rt);
|
||||
|
||||
void emitCustomDeviceEvent(jsi::Runtime &rt, jsi::String eventName);
|
||||
};
|
||||
|
||||
} // namespace facebook::react
|
||||
|
||||
Reference in New Issue
Block a user