Remove lib
This commit is contained in:
parent
27259195f7
commit
4a2e4ef04e
|
@ -1,7 +1,6 @@
|
|||
import React, { useEffect } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { SafeAreaView } from 'react-navigation';
|
||||
import PINCode, { PinStatus } from '@haskkor/react-native-pincode';
|
||||
import RNUserDefaults from 'rn-user-defaults';
|
||||
import Orientation from 'react-native-orientation-locker';
|
||||
|
||||
|
@ -10,7 +9,7 @@ import { themedHeader } from '../utils/navigation';
|
|||
import { withTheme } from '../theme';
|
||||
import { themes } from '../constants/colors';
|
||||
import sharedStyles from './Styles';
|
||||
import { PASSCODE_KEY, PASSCODE_LENGTH } from '../constants/localAuthentication';
|
||||
import { PASSCODE_KEY } from '../constants/localAuthentication';
|
||||
import { isTablet } from '../utils/deviceInfo';
|
||||
import { TYPE } from '../containers/Passcode/constants';
|
||||
import { PasscodeChoose } from '../containers/Passcode';
|
||||
|
@ -36,32 +35,6 @@ const ScreenLockConfigView = React.memo(({ navigation, theme }) => {
|
|||
<SafeAreaView
|
||||
style={[sharedStyles.container, { backgroundColor: themes[theme].auxiliaryBackground }]}
|
||||
>
|
||||
{/* <PINCode
|
||||
status={PinStatus.choose}
|
||||
passwordLength={PASSCODE_LENGTH}
|
||||
customBackSpaceIcon={() => null}
|
||||
storePin={savePasscode}
|
||||
touchIDDisabled
|
||||
colorCircleButtons={themes[theme].backgroundColor}
|
||||
colorPassword={themes[theme].titleText}
|
||||
colorPasswordEmpty={themes[theme].titleText}
|
||||
colorPasswordError={themes[theme].dangerColor}
|
||||
numbersButtonOverlayColor={themes[theme].bannerBackground}
|
||||
stylePinCodeButtonNumber={themes[theme].bodyText}
|
||||
stylePinCodeButtonNumberPressed={themes[theme].bodyText}
|
||||
stylePinCodeColorTitle={themes[theme].titleText}
|
||||
stylePinCodeColorSubtitle={themes[theme].titleText}
|
||||
stylePinCodeColorSubtitleError={themes[theme].dangerColor}
|
||||
stylePinCodeButtonCircle={{ borderWidth: 1, borderColor: themes[theme].borderColor }}
|
||||
stylePinCodeTextTitle={{ ...sharedStyles.textRegular, fontWeight: '400' }}
|
||||
stylePinCodeTextSubtitle={{ ...sharedStyles.textRegular, fontWeight: '300' }}
|
||||
stylePinCodeTextButtonCircle={{ ...sharedStyles.textRegular, fontWeight: '100' }}
|
||||
stylePinCodeHiddenPasswordSizeEmpty={8}
|
||||
stylePinCodeHiddenPasswordSizeFull={12}
|
||||
titleChoose='Enter your new passcode'
|
||||
titleConfirm='Confirm your passcode'
|
||||
subtitleChoose=''
|
||||
/> */}
|
||||
<PasscodeChoose theme={theme} type={TYPE.choose} finishProcess={savePasscode} />
|
||||
</SafeAreaView>
|
||||
);
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
import React, { useEffect, useState } from 'react';
|
||||
import {
|
||||
View, StyleSheet, Text
|
||||
View, StyleSheet
|
||||
} from 'react-native';
|
||||
import PropTypes from 'prop-types';
|
||||
// import PINCode, { PinStatus } from '@haskkor/react-native-pincode';
|
||||
import Modal from 'react-native-modal';
|
||||
import useDeepCompareEffect from 'use-deep-compare-effect';
|
||||
import _ from 'lodash';
|
||||
|
@ -68,37 +67,6 @@ const ScreenLockedView = ({ theme }) => {
|
|||
style={{ margin: 0 }}
|
||||
>
|
||||
<View style={[styles.container, { backgroundColor: themes[theme].auxiliaryBackground }]}>
|
||||
{/* <PINCode
|
||||
status={PinStatus.enter}
|
||||
passwordLength={PASSCODE_LENGTH}
|
||||
customBackSpaceIcon={() => null}
|
||||
finishProcess={onSubmit}
|
||||
storedPin={passcode}
|
||||
maxAttempts={MAX_ATTEMPTS}
|
||||
touchIDDisabled
|
||||
vibrationEnabled={false}
|
||||
timeLocked={TIME_TO_LOCK}
|
||||
colorCircleButtons={themes[theme].backgroundColor}
|
||||
colorPassword={themes[theme].titleText}
|
||||
colorPasswordEmpty={themes[theme].titleText}
|
||||
colorPasswordError={themes[theme].dangerColor}
|
||||
numbersButtonOverlayColor={themes[theme].bannerBackground}
|
||||
stylePinCodeButtonNumber={themes[theme].bodyText}
|
||||
stylePinCodeButtonNumberPressed={themes[theme].bodyText}
|
||||
stylePinCodeColorTitle={themes[theme].titleText}
|
||||
stylePinCodeColorSubtitle={themes[theme].titleText}
|
||||
stylePinCodeColorSubtitleError={themes[theme].dangerColor}
|
||||
stylePinCodeButtonCircle={[styles.circleButton, { borderColor: themes[theme].borderColor }]}
|
||||
stylePinCodeTextTitle={styles.title}
|
||||
stylePinCodeTextSubtitle={styles.subtitle}
|
||||
stylePinCodeTextButtonCircle={styles.circleButtonText}
|
||||
stylePinCodeHiddenPasswordSizeEmpty={8}
|
||||
stylePinCodeHiddenPasswordSizeFull={12}
|
||||
titleEnter='Enter your passcode'
|
||||
timePinLockedAsyncStorageName={LOCKED_OUT_TIMER_KEY}
|
||||
pinAttemptsAsyncStorageName={ATTEMPTS_KEY}
|
||||
lockedPage={<AppLocked />}
|
||||
/> */}
|
||||
<PasscodeEnter theme={theme} type={TYPE.ENTER} finishProcess={onSubmit} />
|
||||
</View>
|
||||
</Modal>
|
||||
|
|
|
@ -23,7 +23,6 @@
|
|||
}
|
||||
},
|
||||
"dependencies": {
|
||||
"@haskkor/react-native-pincode": "RocketChat/react-native-pincode#master",
|
||||
"@nozbe/watermelondb": "^0.16.0-9",
|
||||
"@react-native-community/art": "^1.0.4",
|
||||
"@react-native-community/async-storage": "^1.9.0",
|
||||
|
|
59
yarn.lock
59
yarn.lock
|
@ -830,13 +830,6 @@
|
|||
dependencies:
|
||||
regenerator-runtime "^0.12.0"
|
||||
|
||||
"@babel/runtime@^7.2.0", "@babel/runtime@^7.7.2":
|
||||
version "7.9.2"
|
||||
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.9.2.tgz#d90df0583a3a252f09aaa619665367bae518db06"
|
||||
integrity sha512-NE2DtOdufG7R5vnfQUTehdTfNycfUANEtCa9PssN9O/xmTzP4E08UI797ixaei6hBEVL9BI/PsdJS5x7mWoB9Q==
|
||||
dependencies:
|
||||
regenerator-runtime "^0.13.4"
|
||||
|
||||
"@babel/runtime@^7.4.2", "@babel/runtime@^7.4.3", "@babel/runtime@^7.4.5":
|
||||
version "7.5.5"
|
||||
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.5.5.tgz#74fba56d35efbeca444091c7850ccd494fd2f132"
|
||||
|
@ -865,6 +858,13 @@
|
|||
dependencies:
|
||||
regenerator-runtime "^0.13.2"
|
||||
|
||||
"@babel/runtime@^7.7.2":
|
||||
version "7.9.2"
|
||||
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.9.2.tgz#d90df0583a3a252f09aaa619665367bae518db06"
|
||||
integrity sha512-NE2DtOdufG7R5vnfQUTehdTfNycfUANEtCa9PssN9O/xmTzP4E08UI797ixaei6hBEVL9BI/PsdJS5x7mWoB9Q==
|
||||
dependencies:
|
||||
regenerator-runtime "^0.13.4"
|
||||
|
||||
"@babel/template@^7.0.0", "@babel/template@^7.1.0", "@babel/template@^7.1.2", "@babel/template@^7.2.2":
|
||||
version "7.2.2"
|
||||
resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.2.2.tgz#005b3fdf0ed96e88041330379e0da9a708eb2907"
|
||||
|
@ -1237,16 +1237,6 @@
|
|||
dependencies:
|
||||
"@hapi/hoek" "8.x.x"
|
||||
|
||||
"@haskkor/react-native-pincode@RocketChat/react-native-pincode#master":
|
||||
version "1.22.2"
|
||||
resolved "https://codeload.github.com/RocketChat/react-native-pincode/tar.gz/efefa96bb33c32899e5fa88c385d7aba990f5768"
|
||||
dependencies:
|
||||
d3-ease "^1.0.3"
|
||||
lodash "^4.17.5"
|
||||
react-move "^2.7.0"
|
||||
react-native-easy-grid "^0.2.2"
|
||||
react-native-vector-icons "^6.6.0"
|
||||
|
||||
"@jest/console@^24.7.1":
|
||||
version "24.7.1"
|
||||
resolved "https://registry.yarnpkg.com/@jest/console/-/console-24.7.1.tgz#32a9e42535a97aedfe037e725bd67e954b459545"
|
||||
|
@ -3981,28 +3971,6 @@ currently-unhandled@^0.4.1:
|
|||
dependencies:
|
||||
array-find-index "^1.0.1"
|
||||
|
||||
d3-color@1:
|
||||
version "1.4.1"
|
||||
resolved "https://registry.yarnpkg.com/d3-color/-/d3-color-1.4.1.tgz#c52002bf8846ada4424d55d97982fef26eb3bc8a"
|
||||
integrity sha512-p2sTHSLCJI2QKunbGb7ocOh7DgTAn8IrLx21QRc/BSnodXM4sv6aLQlnfpvehFMLZEfBc6g9pH9SWQccFYfJ9Q==
|
||||
|
||||
d3-ease@^1.0.3:
|
||||
version "1.0.6"
|
||||
resolved "https://registry.yarnpkg.com/d3-ease/-/d3-ease-1.0.6.tgz#ebdb6da22dfac0a22222f2d4da06f66c416a0ec0"
|
||||
integrity sha512-SZ/lVU7LRXafqp7XtIcBdxnWl8yyLpgOmzAk0mWBI9gXNzLDx5ybZgnRbH9dN/yY5tzVBqCQ9avltSnqVwessQ==
|
||||
|
||||
d3-interpolate@^1.3.2:
|
||||
version "1.4.0"
|
||||
resolved "https://registry.yarnpkg.com/d3-interpolate/-/d3-interpolate-1.4.0.tgz#526e79e2d80daa383f9e0c1c1c7dcc0f0583e987"
|
||||
integrity sha512-V9znK0zc3jOPV4VD2zZn0sDhZU3WAE2bmlxdIwwQPPzPjvyLkd8B3JUVdS1IDUFDkWZ72c9qnv1GK2ZagTZ8EA==
|
||||
dependencies:
|
||||
d3-color "1"
|
||||
|
||||
d3-timer@^1.0.9:
|
||||
version "1.0.10"
|
||||
resolved "https://registry.yarnpkg.com/d3-timer/-/d3-timer-1.0.10.tgz#dfe76b8a91748831b13b6d9c793ffbd508dd9de5"
|
||||
integrity sha512-B1JDm0XDaQC+uvo4DT79H0XmBskgS3l6Ve+1SBCfxgmtIb1AVrPIoqd+nPSv+loMX8szQ0sVUhGngL7D5QPiXw==
|
||||
|
||||
damerau-levenshtein@^1.0.4:
|
||||
version "1.0.4"
|
||||
resolved "https://registry.yarnpkg.com/damerau-levenshtein/-/damerau-levenshtein-1.0.4.tgz#03191c432cb6eea168bb77f3a55ffdccb8978514"
|
||||
|
@ -9896,17 +9864,6 @@ react-lifecycles-compat@^3.0.2, react-lifecycles-compat@^3.0.4:
|
|||
resolved "https://registry.yarnpkg.com/react-lifecycles-compat/-/react-lifecycles-compat-3.0.4.tgz#4f1a273afdfc8f3488a8c516bfda78f872352362"
|
||||
integrity sha512-fBASbA6LnOU9dOU2eW7aQ8xmYBSXUIWr+UmF9b1efZBazGNO+rcXT/icdKnYm2pTwcRylVUYwW7H1PHfLekVzA==
|
||||
|
||||
react-move@^2.7.0:
|
||||
version "2.9.1"
|
||||
resolved "https://registry.yarnpkg.com/react-move/-/react-move-2.9.1.tgz#966a1e7312795b03aa6b4834f9392a3bfbbe2ca0"
|
||||
integrity sha512-5qKYsJrKKpSypEaaYyR2HBbBgX65htRqKDa8o5OGDkq2VfklmTCbLawtYFpdmcJRqbz4jCYpzo2Rrsazq9HA8Q==
|
||||
dependencies:
|
||||
"@babel/runtime" "^7.2.0"
|
||||
d3-interpolate "^1.3.2"
|
||||
d3-timer "^1.0.9"
|
||||
prop-types "^15.6.2"
|
||||
react-lifecycles-compat "^3.0.4"
|
||||
|
||||
react-native-action-sheet@^2.2.0:
|
||||
version "2.2.0"
|
||||
resolved "https://registry.yarnpkg.com/react-native-action-sheet/-/react-native-action-sheet-2.2.0.tgz#309a87f53bf4e7b17fdd9d24b10b8dcbaebb7230"
|
||||
|
@ -10215,7 +10172,7 @@ react-native-unimodules@^0.9.0:
|
|||
unimodules-sensors-interface "~5.1.0"
|
||||
unimodules-task-manager-interface "~5.1.0"
|
||||
|
||||
react-native-vector-icons@6.6.0, react-native-vector-icons@^6.6.0:
|
||||
react-native-vector-icons@6.6.0:
|
||||
version "6.6.0"
|
||||
resolved "https://registry.yarnpkg.com/react-native-vector-icons/-/react-native-vector-icons-6.6.0.tgz#66cf004918eb05d90778d64bd42077c1800d481b"
|
||||
integrity sha512-MImKVx8JEvVVBnaShMr7/yTX4Y062JZMupht1T+IEgbqBj4aQeQ1z2SH4VHWKNtWtppk4kz9gYyUiMWqx6tNSw==
|
||||
|
|
Loading…
Reference in New Issue