mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
clang-format | Format fbsource with clang-format 21.
Reviewed By: ChristianK275 Differential Revision: D85317706 fbshipit-source-id: b399c5c4b75252999442b7d7d2778e7a241b0025
This commit is contained in:
committed by
meta-codesync[bot]
parent
43f464b218
commit
59affc38a6
@@ -186,10 +186,11 @@ void NativeCxxModuleExample::voidFunc(jsi::Runtime& /*rt*/) {
|
||||
emitOnPress();
|
||||
emitOnClick<std::string>("value from callback on click!");
|
||||
emitOnChange(ObjectStruct{1, "two", std::nullopt});
|
||||
emitOnSubmit(std::vector{
|
||||
ObjectStruct{1, "two", std::nullopt},
|
||||
ObjectStruct{3, "four", std::nullopt},
|
||||
ObjectStruct{5, "six", std::nullopt}});
|
||||
emitOnSubmit(
|
||||
std::vector{
|
||||
ObjectStruct{1, "two", std::nullopt},
|
||||
ObjectStruct{3, "four", std::nullopt},
|
||||
ObjectStruct{5, "six", std::nullopt}});
|
||||
emitOnEvent(NativeCxxModuleExampleEnumNone::NA);
|
||||
}
|
||||
|
||||
@@ -217,13 +218,14 @@ void NativeCxxModuleExample::emitCustomDeviceEvent(
|
||||
eventName,
|
||||
[jsInvoker = jsInvoker_](
|
||||
jsi::Runtime& rt, std::vector<jsi::Value>& args) {
|
||||
args.emplace_back(jsi::Array::createWithElements(
|
||||
rt,
|
||||
jsi::Value(true),
|
||||
jsi::Value(42),
|
||||
jsi::String::createFromAscii(rt, "stringArg"),
|
||||
bridging::toJs(
|
||||
rt, CustomDeviceEvent{"one", 2, std::nullopt}, jsInvoker)));
|
||||
args.emplace_back(
|
||||
jsi::Array::createWithElements(
|
||||
rt,
|
||||
jsi::Value(true),
|
||||
jsi::Value(42),
|
||||
jsi::String::createFromAscii(rt, "stringArg"),
|
||||
bridging::toJs(
|
||||
rt, CustomDeviceEvent{"one", 2, std::nullopt}, jsInvoker)));
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user