diff --git a/Libraries/StyleSheet/__tests__/splitLayoutProps-test.js b/Libraries/StyleSheet/__tests__/splitLayoutProps-test.js index 70b2877ae2c..0bb9a1a1994 100644 --- a/Libraries/StyleSheet/__tests__/splitLayoutProps-test.js +++ b/Libraries/StyleSheet/__tests__/splitLayoutProps-test.js @@ -13,11 +13,14 @@ const splitLayoutProps = require('../splitLayoutProps'); test('splits style objects', () => { - const style = {width: 10, margin: 20, padding: 30}; + const style = {width: 10, margin: 20, padding: 30, transform: {scaleY: -1}}; const {outer, inner} = splitLayoutProps(style); expect(outer).toMatchInlineSnapshot(` Object { "margin": 20, + "transform": Object { + "scaleY": -1, + }, "width": 10, } `); diff --git a/Libraries/StyleSheet/splitLayoutProps.js b/Libraries/StyleSheet/splitLayoutProps.js index 700fbea437f..ab4197cc45e 100644 --- a/Libraries/StyleSheet/splitLayoutProps.js +++ b/Libraries/StyleSheet/splitLayoutProps.js @@ -36,6 +36,7 @@ const OUTER_PROPS = Object.assign(Object.create(null), { right: true, bottom: true, top: true, + transform: true, }); function splitLayoutProps(