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