diff --git a/app/commands.ts b/app/commands.ts index d549ebdb8..3b06a2f51 100644 --- a/app/commands.ts +++ b/app/commands.ts @@ -1,12 +1,19 @@ /* eslint-disable no-bitwise */ import { NativeSyntheticEvent } from 'react-native'; -// import KeyCommands, { constants, KeyCommand } from 'react-native-keycommands'; - -const constants = {}; -const KeyCommands = {}; -const KeyCommand = {}; import I18n from './i18n'; +// import KeyCommands, { constants, KeyCommand } from 'react-native-keycommands'; + +const constants = { keyModifierCommand: 0, keyModifierAlternate: 0, keyInputUpArrow: '', keyInputDownArrow: '' }; +const KeyCommands = { + setKeyCommands: (args: any) => { + console.log(args); + }, + deleteKeyCommands: (args: any) => { + console.log(args); + } +}; +const KeyCommand = {}; const KEY_TYPING = '\t'; const KEY_PREFERENCES = 'p'; diff --git a/app/lib/methods/shareExtension.ts b/app/lib/methods/shareExtension.ts index 6b76e89a7..770427b76 100644 --- a/app/lib/methods/shareExtension.ts +++ b/app/lib/methods/shareExtension.ts @@ -9,7 +9,7 @@ import database from '../database'; import { encryptionInit } from '../../actions/encryption'; import { store } from '../store/auxStore'; import sdk from '../services/sdk'; -import { CERTIFICATE_KEY, TOKEN_KEY } from '../constants'; +import { TOKEN_KEY } from '../constants'; import { setCustomEmojis } from './getCustomEmojis'; import { Services } from '../services'; import { parseSettings } from './parseSettings'; @@ -18,7 +18,7 @@ export async function shareExtensionInit(server: string) { database.setShareDB(server); try { - const certificate = UserPreferences.getString(`${CERTIFICATE_KEY}-${server}`); + // const certificate = UserPreferences.getString(`${CERTIFICATE_KEY}-${server}`); // if (SSLPinning && certificate) { // await SSLPinning.setCertificate(certificate, server); // } diff --git a/app/views/NewServerView/index.tsx b/app/views/NewServerView/index.tsx index 0d080b165..e9a654445 100644 --- a/app/views/NewServerView/index.tsx +++ b/app/views/NewServerView/index.tsx @@ -240,7 +240,7 @@ class NewServerView extends React.Component { + chooseCertificate = () => { try { // const certificate = await SSLPinning?.pickCertificate(); // this.setState({ certificate });