A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
fix notebook does not scroll to the end
ammarahm-edbdd570ab55d8
diff --git a/apps/mobile/src/components/MoveNoteDialog/index.js b/apps/mobile/src/components/MoveNoteDialog/index.jsindex 915aecfb9..d7619b6f5 100644--- a/apps/mobile/src/components/MoveNoteDialog/index.js+++ b/apps/mobile/src/components/MoveNoteDialog/index.js@@ -1,38 +1,29 @@import React, { createRef, useEffect, useState } from 'react';-import { Keyboard, TextInput, TouchableOpacity, View } from 'react-native';+import { Keyboard, TouchableOpacity, View } from 'react-native';import { FlatList } from 'react-native-gesture-handler';-import Icon from 'react-native-vector-icons/MaterialCommunityIcons';import { notesnook } from '../../../e2e/test.ids';import { useTracked } from '../../provider';-import { Actions } from '../../provider/Actions';-import { useNotebookStore, useSelectionStore, useSettingStore } from '../../provider/stores';-import {- eSubscribeEvent,- eUnSubscribeEvent,- sendNoteEditedEvent,- ToastEvent-} from '../../services/EventManager';+import { useNotebookStore, useSelectionStore } from '../../provider/stores';+import { eSubscribeEvent, eUnSubscribeEvent, ToastEvent } from '../../services/EventManager';import Navigation from '../../services/Navigation';-import { getTotalNotes, InteractionManager } from '../../utils';+import { getTotalNotes } from '../../utils';import { db } from '../../utils/database';import { eOpenMoveNoteDialog } from '../../utils/Events';-import { pv, SIZE } from '../../utils/SizeUtils';-import SheetWrapper from '../Sheet';+import layoutmanager from '../../utils/layout-manager';+import { SIZE } from '../../utils/SizeUtils';+import { ActionIcon } from '../ActionIcon';import { Button } from '../Button';+import { Dialog } from '../Dialog';import DialogHeader from '../Dialog/dialog-header';+import { presentDialog } from '../Dialog/functions';+import Input from '../Input';import { PressableButton } from '../PressableButton';+import SheetWrapper from '../Sheet';import Heading from '../Typography/Heading';import Paragraph from '../Typography/Paragraph';-import Input from '../Input';-import { ActionIcon } from '../ActionIcon';-import { Dialog } from '../Dialog';-import { presentDialog } from '../Dialog/functions';-import layoutmanager from '../../utils/layout-manager';let newNotebookTitle = null;-let newTopicTitle = null;const notebookInput = createRef();-const topicInput = createRef();const actionSheetRef = createRef();const MoveNoteDialog = () => {const [visible, setVisible] = useState(false);@@ -56,7 +47,6 @@ const MoveNoteDialog = () => {const _onClose = () => {setVisible(false);- newTopicTitle = null;newNotebookTitle = null;setNote(null);Navigation.setRoutesToUpdate([@@ -241,22 +231,16 @@ const MoveNoteComponent = ({ close, note, setNote }) => {<FlatListnestedScrollEnabled={true}- onScrollEndDrag={() => {- actionSheetRef.current?.handleChildScrollEnd();- }}onMomentumScrollEnd={() => {actionSheetRef.current?.handleChildScrollEnd();}}- onScrollAnimationEnd={() => {- actionSheetRef.current?.handleChildScrollEnd();- }}keyboardShouldPersistTaps="always"keyboardDismissMode="none"data={notebooks}ListFooterComponent={<Viewstyle={{- height: 100+ height: 200}}/>}@@ -372,15 +356,9 @@ const MoveNoteComponent = ({ close, note, setNote }) => {data={item.topics}keyboardShouldPersistTaps="always"keyboardDismissMode="none"- onScrollEndDrag={() => {- actionSheetRef.current?.handleChildScrollEnd();- }}onMomentumScrollEnd={() => {actionSheetRef.current?.handleChildScrollEnd();}}- onScrollAnimationEnd={() => {- actionSheetRef.current?.handleChildScrollEnd();- }}style={{width: '100%',alignSelf: 'flex-end',