diff --git a/types/react-native/index.d.ts b/types/react-native/index.d.ts index 4b9ef8c075..42fe51fc8c 100644 --- a/types/react-native/index.d.ts +++ b/types/react-native/index.d.ts @@ -6065,7 +6065,7 @@ export interface ScrollViewProperties extends ViewProperties, ScrollViewProperti /** * Style */ - style?: ScrollViewStyle | Array + style?: StyleProp /** * A RefreshControl component, used to provide pull-to-refresh diff --git a/types/react-native/test/index.tsx b/types/react-native/test/index.tsx index 954402f23c..5cf036d433 100644 --- a/types/react-native/test/index.tsx +++ b/types/react-native/test/index.tsx @@ -244,6 +244,14 @@ export class CapsLockComponent extends React.Component { class ScrollerListComponentTest extends React.Component<{}, { dataSource: ListViewDataSource}> { render() { + const scrollViewStyle1 = StyleSheet.create({ + scrollView: { + backgroundColor: 'red', + }, + }); + const scrollViewStyle2 = { + flex: 1 + }; return ( { @@ -251,7 +259,7 @@ class ScrollerListComponentTest extends React.Component<{}, { dataSource: ListVi throw new Error("Expected scroll to be enabled.") } - return + return }} renderRow={({ type, data }, _, row: number) => { return Filler