Skip to content

Commit 0a282c4

Browse files
migbotfacebook-github-bot
authored andcommitted
Include transform in OUTER_PROPS (#26611)
Summary: Without `transform` in `OUTER_PROPS`, the refresh control component would not include `transform: {scaleY: -1}` in its style and so pulling down, rather than up, on a scroll view would trigger a refresh. Fixes #26181 ## Changelog [Android] [Fixed] - Fixed issue with refresh control not working properly on an inverted ScrollView Pull Request resolved: #26611 Test Plan: Updated unit test in splitLayoutProps-test.js. Differential Revision: D17661079 Pulled By: cpojer fbshipit-source-id: 747da27b11c3ca59b7f639f393ae5ac137f5490a
1 parent 9a2bc71 commit 0a282c4

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Libraries/StyleSheet/__tests__/splitLayoutProps-test.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,14 @@
1313
const splitLayoutProps = require('../splitLayoutProps');
1414

1515
test('splits style objects', () => {
16-
const style = {width: 10, margin: 20, padding: 30};
16+
const style = {width: 10, margin: 20, padding: 30, transform: {scaleY: -1}};
1717
const {outer, inner} = splitLayoutProps(style);
1818
expect(outer).toMatchInlineSnapshot(`
1919
Object {
2020
"margin": 20,
21+
"transform": Object {
22+
"scaleY": -1,
23+
},
2124
"width": 10,
2225
}
2326
`);

Libraries/StyleSheet/splitLayoutProps.js

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ const OUTER_PROPS = Object.assign(Object.create(null), {
3636
right: true,
3737
bottom: true,
3838
top: true,
39+
transform: true,
3940
});
4041

4142
function splitLayoutProps(

0 commit comments

Comments
 (0)