mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
enable scrolling in list in notebooks dialog
This commit is contained in:
@@ -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}
|
||||||
|
|||||||
Reference in New Issue
Block a user