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
minor refactor
ammarahm-eddab42a2e356c
diff --git a/apps/mobile/src/components/ActionSheetComponent/index.js b/apps/mobile/src/components/ActionSheetComponent/index.jsindex e06f1e4b6..7c3b820bb 100644--- a/apps/mobile/src/components/ActionSheetComponent/index.js+++ b/apps/mobile/src/components/ActionSheetComponent/index.js@@ -90,14 +90,14 @@ export const ActionSheetComponent = ({if (tag.includes(',')) {tag = tag.replace(',', '');}- tagsInputRef.current?.setNativeProps({- text: '',- });await db.notes.note(note.id).tag(tag);setNote({...db.notes.note(note.id).data});dispatch({type: ACTIONS.TAGS});+ tagsInputRef.current?.setNativeProps({+ text: '',+ });tagToAdd = '';};@@ -351,7 +351,6 @@ export const ActionSheetComponent = ({.catch(async e => {switch (e.message) {case db.vault.ERRORS.noVault:-close('novault');break;case db.vault.ERRORS.vaultLocked:diff --git a/apps/mobile/src/components/LoginDialog/index.js b/apps/mobile/src/components/LoginDialog/index.jsindex 74a3b3713..c8362c4ba 100644--- a/apps/mobile/src/components/LoginDialog/index.js+++ b/apps/mobile/src/components/LoginDialog/index.js@@ -1,4 +1,4 @@-import React, { createRef } from 'react';+import React, {createRef} from 'react';import {Modal, TouchableOpacity, View} from 'react-native';import * as Animatable from 'react-native-animatable';import {normalize} from '../../common/common';@@ -12,13 +12,17 @@ import Signup from '../../views/Signup';import {updateEvent} from '../DialogManager/recievers';import {NavigationContainer} from '@react-navigation/native';import {createStackNavigator} from '@react-navigation/stack';+import Container from '../Container';const Stack = createStackNavigator();-const modalNavigatorRef2 = createRef();+const ModalNavigator = ({onStateChange}) => {return (- <NavigationContainer onStateChange={onStateChange} independent={true} ref={modalNavigatorRef2}>+ <NavigationContainer+ onStateChange={onStateChange}+ independent={true}+ ref={modalNavigatorRef2}><Stack.NavigatorinitialRouteName="Login"screenOptions={{@@ -127,11 +131,13 @@ class LoginDialog extends React.Component {paddingVertical: 16,zIndex: 10,}}>- <ModalNavigator- onStateChange={event => {+ <Container>+ <ModalNavigator+ onStateChange={event => {this.routeIndex = event.index;- }}- />+ }}+ />+ </Container></View></Animatable.View></Modal>