Fabric: Fix order of arguments in RCTEdgeInsetsFromUIEdgeInsets

Summary:
Order of arguments for `RectangleEdges` was incorrect

changelog: [internal]

Reviewed By: shergin

Differential Revision: D18231825

fbshipit-source-id: 188d7af405ce801437ff67999a8f7dae77ae03c0
This commit is contained in:
Samuel Susla
2019-10-31 21:25:37 -07:00
committed by Facebook Github Bot
parent 038353b89c
commit cd1abb3bca
+1 -1
View File
@@ -111,7 +111,7 @@ inline facebook::react::Rect RCTRectFromCGRect(const CGRect &rect) {
}
inline facebook::react::EdgeInsets RCTEdgeInsetsFromUIEdgeInsets(const UIEdgeInsets &edgeInsets) {
return {edgeInsets.top, edgeInsets.left, edgeInsets.bottom, edgeInsets.right};
return {edgeInsets.left, edgeInsets.top, edgeInsets.right, edgeInsets.bottom};
}
NS_ASSUME_NONNULL_END