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 https://github.com/facebook/react-native/issues/26181 ## Changelog [Android] [Fixed] - Fixed issue with refresh control not working properly on an inverted ScrollView Pull Request resolved: https://github.com/facebook/react-native/pull/26611 Test Plan: Updated unit test in splitLayoutProps-test.js. Differential Revision: D17661079 Pulled By: cpojer fbshipit-source-id: 747da27b11c3ca59b7f639f393ae5ac137f5490a
This commit is contained in:
Родитель
9a2bc71064
Коммит
0a282c42b4
|
@ -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,
|
||||
}
|
||||
`);
|
||||
|
|
|
@ -36,6 +36,7 @@ const OUTER_PROPS = Object.assign(Object.create(null), {
|
|||
right: true,
|
||||
bottom: true,
|
||||
top: true,
|
||||
transform: true,
|
||||
});
|
||||
|
||||
function splitLayoutProps(
|
||||
|
|
Загрузка…
Ссылка в новой задаче