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
cleanup
ammarahm-ed6714cae5023d
diff --git a/apps/mobile/index.js b/apps/mobile/index.jsindex eda942da1..12793d2ce 100644--- a/apps/mobile/index.js+++ b/apps/mobile/index.js@@ -1,7 +1,3 @@-/**- * @format- */-import {AppRegistry} from 'react-native';import App from './App';import {name as appName} from './app.json';diff --git a/apps/mobile/src/components/Container/index.js b/apps/mobile/src/components/Container/index.jsindex cb9bf8006..89d33f3c6 100644--- a/apps/mobile/src/components/Container/index.js+++ b/apps/mobile/src/components/Container/index.js@@ -17,8 +17,9 @@ import {eSubscribeEvent, eUnSubscribeEvent} from '../../services/eventManager';import {eScrollEvent, eClearSearch} from '../../services/events';import {db, getElevation, ToastEvent, DDS, selection} from '../../utils/utils';import {Header} from '../header';-import {Search, inputRef} from '../SearchInput';+import {Search} from '../SearchInput';import SelectionHeader from '../SelectionHeader';+import {inputRef} from '../../utils/refs';export const AnimatedSafeAreaView = Animatable.createAnimatableComponent(SafeAreaView,diff --git a/apps/mobile/src/components/Menu/index.js b/apps/mobile/src/components/Menu/index.jsindex 9f142e9cb..852975126 100644--- a/apps/mobile/src/components/Menu/index.js+++ b/apps/mobile/src/components/Menu/index.js@@ -414,7 +414,6 @@ export const Menu = ({fontSize: SIZE.xxs,minWidth: 12,minHeight: 12,-paddingHorizontal: 2,textAlign: 'center',}}>diff --git a/apps/mobile/src/components/NotesList/index.js b/apps/mobile/src/components/NotesList/index.jsindex 60de7192e..aaa775173 100644--- a/apps/mobile/src/components/NotesList/index.js+++ b/apps/mobile/src/components/NotesList/index.js@@ -17,8 +17,6 @@ import {ToastEvent, hexToRGBA, DDS, db} from '../../utils/utils';import {NotesPlaceHolder} from '../ListPlaceholders';import NoteItem from '../NoteItem';import SelectionWrapper from '../SelectionWrapper';--import {inputRef} from '../SearchInput';import {useIsFocused} from 'react-navigation-hooks';const sectionListRef = createRef();diff --git a/apps/mobile/src/components/SearchInput/index.js b/apps/mobile/src/components/SearchInput/index.jsindex 60529fe35..ba00cda72 100644--- a/apps/mobile/src/components/SearchInput/index.js+++ b/apps/mobile/src/components/SearchInput/index.js@@ -6,11 +6,10 @@ import Icon from 'react-native-vector-icons/MaterialCommunityIcons';import {br, SIZE, WEIGHT} from '../../common/common';import {useTracked} from '../../provider';import {DDS} from '../../utils/utils';+import {inputRef} from '../../utils/refs';const {Value, timing, block} = Animated;-export const inputRef = createRef();-export const Search = props => {const [state, dispatch] = useTracked();const {colors, searchResults} = state;diff --git a/apps/mobile/src/components/SimpleList/index.js b/apps/mobile/src/components/SimpleList/index.jsindex 244960c8a..444ebf496 100644--- a/apps/mobile/src/components/SimpleList/index.js+++ b/apps/mobile/src/components/SimpleList/index.js@@ -1,7 +1,6 @@import React, {useState} from 'react';import {FlatList, Platform, RefreshControl, Text, View} from 'react-native';import {SIZE, WEIGHT} from '../../common/common';-import {inputRef} from '../../components/SearchInput';import {useTracked} from '../../provider';import {ACTIONS} from '../../provider/actions';import {eSendEvent} from '../../services/eventManager';diff --git a/apps/mobile/src/utils/refs.js b/apps/mobile/src/utils/refs.jsindex b935b03ef..58075516e 100644--- a/apps/mobile/src/utils/refs.js+++ b/apps/mobile/src/utils/refs.js@@ -1,3 +1,5 @@import {createRef} from 'react';export const sideMenuRef = createRef();++export const inputRef = createRef();diff --git a/apps/mobile/src/views/Tags/index.js b/apps/mobile/src/views/Tags/index.jsindex a50043cd0..9e035bf91 100644--- a/apps/mobile/src/views/Tags/index.js+++ b/apps/mobile/src/views/Tags/index.js@@ -1,23 +1,14 @@import React, {useEffect, useState} from 'react';-import {- Dimensions,- FlatList,- Platform,- RefreshControl,- Text,- TouchableOpacity,- View,-} from 'react-native';+import {Dimensions, Text, TouchableOpacity, View} from 'react-native';+import {useIsFocused} from 'react-navigation-hooks';import {pv, SIZE, WEIGHT} from '../../common/common';import Container from '../../components/Container';import {TagsPlaceHolder} from '../../components/ListPlaceholders';+import SimpleList from '../../components/SimpleList';import {useTracked} from '../../provider';import {ACTIONS} from '../../provider/actions';import NavigationService from '../../services/NavigationService';-import {ToastEvent} from '../../utils/utils';-import {useIsFocused} from 'react-navigation-hooks';-import {inputRef} from '../../components/SearchInput';-import SimpleList from '../../components/SimpleList';+const w = Dimensions.get('window').width;const h = Dimensions.get('window').height;