Fabric: Enabling clang-format for half of Fabric modules

Summary:
All code styles are terribly ugly. We have the only choise - choise something and embrace it.
This particular code style was borrowed from a neibour Fabric-friendly project because it follows established Facebook guides and respects client-side traditions.

Reviewed By: mdvacca

Differential Revision: D10218598

fbshipit-source-id: 8c4cf6713c07768566dadef479191661c79988f0
This commit is contained in:
Valentin Shergin
2018-10-05 11:01:08 -07:00
committed by Facebook Github Bot
parent 3d31bebbeb
commit 3ad5c9e016
100 changed files with 2589 additions and 1728 deletions

View File

@@ -29,11 +29,9 @@ void ViewEventEmitter::onAccessibilityMagicTap() const {
void ViewEventEmitter::onLayout(const LayoutMetrics &layoutMetrics) const {
folly::dynamic payload = folly::dynamic::object();
const auto &frame = layoutMetrics.frame;
payload["layout"] = folly::dynamic::object
("x", frame.origin.x)
("y", frame.origin.y)
("width", frame.size.width)
("height", frame.size.height);
payload["layout"] =
folly::dynamic::object("x", frame.origin.x)("y", frame.origin.y)(
"width", frame.size.width)("height", frame.size.height);
dispatchEvent("layout", payload);
}