add nestedScrollEnabled props for andorid in react-native types.

This commit is contained in:
hikouki
2018-08-23 19:03:48 +09:00
parent 1f04f4a5a6
commit 59efb325e2
2 changed files with 6 additions and 1 deletions

View File

@@ -6210,6 +6210,11 @@ export interface ScrollViewPropsAndroid {
* - 'never' - Never allow a user to over-scroll this view.
*/
overScrollMode?: "auto" | "always" | "never";
/**
* Enables nested scrolling for Android API level 21+. Nested scrolling is supported by default on iOS.
*/
nestedScrollEnabled?: boolean;
}
export interface ScrollViewProps

View File

@@ -390,7 +390,7 @@ class ScrollerListComponentTest extends React.Component<{}, { dataSource: ListVi
throw new Error("Expected scroll to be enabled.");
}
return <ScrollView horizontal={true} contentOffset={{x: 0, y: 0}} {...props} style={[scrollViewStyle1.scrollView, scrollViewStyle2]} />;
return <ScrollView horizontal={true} nestedScrollEnabled={true} contentOffset={{x: 0, y: 0}} {...props} style={[scrollViewStyle1.scrollView, scrollViewStyle2]} />;
}}
renderRow={({ type, data }, _, row) => {
return <Text>Filler</Text>;