mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
add nestedScrollEnabled props for andorid in react-native types.
This commit is contained in:
5
types/react-native/index.d.ts
vendored
5
types/react-native/index.d.ts
vendored
@@ -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
|
||||
|
||||
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user