enable scrolling in list in notebooks dialog

This commit is contained in:
ammarahm-ed
2021-07-28 11:39:32 +05:00
parent af3339489f
commit c020bf2028

View File

@@ -52,7 +52,7 @@ export class AddNotebookDialog extends React.Component {
}
open = () => {
console.log('opening called')
console.log('opening called');
refs = [];
let {toEdit} = this.props;
if (toEdit && toEdit.type === 'notebook') {
@@ -366,7 +366,11 @@ export class AddNotebookDialog extends React.Component {
<FlatList
data={topics}
ref={ref => (this.listRef = ref)}
nestedScrollEnabled
keyExtractor={(item, index) => item + index.toString()}
onMomentumScrollEnd={() => {
this.actionSheetRef.current?.handleChildScrollEnd();
}}
renderItem={({item, index}) => (
<TopicItem
item={item}