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 search value not clear on searchInput
ammarahm-eda2533bfd2eb5
diff --git a/apps/mobile/src/components/NotesList/index.js b/apps/mobile/src/components/NotesList/index.jsindex 41ff71649..69c5fe90f 100644--- a/apps/mobile/src/components/NotesList/index.js+++ b/apps/mobile/src/components/NotesList/index.js@@ -18,6 +18,7 @@ import {NotesPlaceHolder} from '../ListPlaceholders';import NoteItem from '../NoteItem';import SelectionWrapper from '../SelectionWrapper';import {db, DDS} from '../../../App';+import {inputRef} from '../SearchInput';export const NotesList = ({isGrouped = false}) => {const [state, dispatch] = useTracked();@@ -178,6 +179,9 @@ export const NotesList = ({isGrouped = false}) => {</Text><TextonPress={() => {+ inputRef.current?.setNativeProps({+ text: '',+ });dispatch({type: ACTIONS.SEARCH_RESULTS,results: [],diff --git a/apps/mobile/src/components/SearchInput/index.js b/apps/mobile/src/components/SearchInput/index.jsindex 1755a722d..b1a49b3f8 100644--- a/apps/mobile/src/components/SearchInput/index.js+++ b/apps/mobile/src/components/SearchInput/index.js@@ -8,12 +8,14 @@ import {useTracked} from '../../provider';const {Value, timing, block} = Animated;+export const inputRef = createRef();+export const Search = props => {const [state, dispatch] = useTracked();const {colors, searchResults} = state;const [focus, setFocus] = useState(false);- const inputRef = createRef();+const _marginAnim = new Value(0);const _opacity = new Value(1);const _borderAnim = new Value(1.5);