mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
Merge pull request #28322 from hikouki/master
react-native: add nestedScrollEnabled props for andorid (RN0.56.0)
This commit is contained in:
5
types/react-native/index.d.ts
vendored
5
types/react-native/index.d.ts
vendored
@@ -6211,6 +6211,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
|
||||
|
||||
@@ -391,7 +391,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