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 unlocking note
ammarahm-ed6ca86718f1c3
diff --git a/apps/mobile/src/components/VaultDialog/index.js b/apps/mobile/src/components/VaultDialog/index.jsindex 0d33b8bde..ae26b489f 100644--- a/apps/mobile/src/components/VaultDialog/index.js+++ b/apps/mobile/src/components/VaultDialog/index.js@@ -1,4 +1,4 @@-import React, {Component} from 'react';+import React, {Component, createRef} from 'react';import {View, Text, TouchableOpacity, Modal} from 'react-native';import {SIZE, ph, pv, opacity, WEIGHT} from '../../common/common';import Icon from 'react-native-vector-icons/MaterialCommunityIcons';@@ -13,7 +13,7 @@ import {eSendEvent} from '../../services/eventManager';import {eOnLoadNote} from '../../services/events';import {openEditorAnimation} from '../../utils/animations';import {ACTIONS} from '../../provider/actions';-+const passInputRef = createRef();export class VaultDialog extends Component {constructor(props) {super(props);@@ -82,7 +82,13 @@ export class VaultDialog extends Component {const {visible} = this.state;return (- <Modal visible={visible} transparent={true} onRequestClose={this.close}>+ <Modal+ onShow={() => {+ passInputRef.current?.focus();+ }}+ visible={visible}+ transparent={true}+ onRequestClose={this.close}><Viewstyle={{width: '100%',@@ -139,6 +145,7 @@ export class VaultDialog extends Component {{note.locked ? (<TextInput+ ref={passInputRef}style={{padding: pv - 5,borderWidth: 1.5,