From 9a59428468afbf3d76fd2d61abafe17e88101b09 Mon Sep 17 00:00:00 2001 From: Valentin Shergin Date: Mon, 18 Jun 2018 22:53:53 -0700 Subject: [PATCH] Fabric: Fixed `Identity Transform` matrix literal Summary: @public As Janic janicduplessis mentioned on GH the literal should be slightly different. https://github.com/facebook/react-native/commit/8df7d516006041ff703d68ea277795ff758572ff#r29390543 And here is prooflink: https://developer.apple.com/documentation/quartzcore/calayer/identity_transform?language=objc Thanks Janic! Created from Diffusion's 'Open in Editor' feature. Reviewed By: fkgozali Differential Revision: D8508559 fbshipit-source-id: 7427be36e041bf500bee1e06d2293f7b5ea8cf21 --- ReactCommon/fabric/view/primitives.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReactCommon/fabric/view/primitives.h b/ReactCommon/fabric/view/primitives.h index 3e57f4bf8..f7814c041 100644 --- a/ReactCommon/fabric/view/primitives.h +++ b/ReactCommon/fabric/view/primitives.h @@ -14,7 +14,7 @@ namespace react { struct Transform { std::array matrix {{ - 0, 0, 0, 0, + 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1