clang-format | Format fbsource with clang-format 21.

Reviewed By: ChristianK275

Differential Revision: D85317706

fbshipit-source-id: b399c5c4b75252999442b7d7d2778e7a241b0025
This commit is contained in:
Nikita Lutsenko
2025-10-26 23:40:59 -07:00
committed by meta-codesync[bot]
parent 43f464b218
commit 59affc38a6
816 changed files with 10382 additions and 13436 deletions
@@ -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)));
});
}