mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 01:40:12 +01:00
DEL: Remove react-native-system-setting
This commit is contained in:
parent
e1ea86d132
commit
41b2808378
@ -37,8 +37,6 @@ PODS:
|
||||
- lottie-react-native (3.1.1):
|
||||
- lottie-ios (~> 3.0.3)
|
||||
- React
|
||||
- RCTSystemSetting (1.7.3):
|
||||
- React
|
||||
- React (0.60.5):
|
||||
- React-Core (= 0.60.5)
|
||||
- React-DevSupport (= 0.60.5)
|
||||
@ -178,7 +176,6 @@ DEPENDENCIES:
|
||||
- Folly (from `../node_modules/react-native/third-party-podspecs/Folly.podspec`)
|
||||
- glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`)
|
||||
- lottie-react-native (from `../node_modules/lottie-react-native`)
|
||||
- RCTSystemSetting (from `../node_modules/react-native-system-setting`)
|
||||
- React (from `../node_modules/react-native/`)
|
||||
- React-Core (from `../node_modules/react-native/React`)
|
||||
- React-cxxreact (from `../node_modules/react-native/ReactCommon/cxxreact`)
|
||||
@ -249,8 +246,6 @@ EXTERNAL SOURCES:
|
||||
:podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec"
|
||||
lottie-react-native:
|
||||
:path: "../node_modules/lottie-react-native"
|
||||
RCTSystemSetting:
|
||||
:path: "../node_modules/react-native-system-setting"
|
||||
React:
|
||||
:path: "../node_modules/react-native/"
|
||||
React-Core:
|
||||
@ -350,7 +345,6 @@ SPEC CHECKSUMS:
|
||||
glog: 1f3da668190260b06b429bb211bfbee5cd790c28
|
||||
lottie-ios: c38c3178ae8c4a8f200661aa5f80b9f1ca7f56b3
|
||||
lottie-react-native: d8caf2aa9ab8bb76312e44997c1c91804a23d44d
|
||||
RCTSystemSetting: 2870be06565f2398a8786bfe8486ff6880a4326a
|
||||
React: 53c53c4d99097af47cf60594b8706b4e3321e722
|
||||
React-Core: ba421f6b4f4cbe2fb17c0b6fc675f87622e78a64
|
||||
React-cxxreact: 8384287780c4999351ad9b6e7a149d9ed10a2395
|
||||
|
4
package-lock.json
generated
4
package-lock.json
generated
@ -11347,10 +11347,6 @@
|
||||
"resolved": "https://registry.npmjs.org/react-native-svg/-/react-native-svg-9.5.1.tgz",
|
||||
"integrity": "sha512-cRGfomzG/5LEwuJ6ct3m5yccckeI9aj8BNYwDPVxOeJ84LuJuvk5OqcjlYNeEzOWmWiH+QrFXfpLH1ag04bUeQ=="
|
||||
},
|
||||
"react-native-system-setting": {
|
||||
"version": "git+https://github.com/marcosrdz/react-native-system-setting.git#ca2f063452b9cc94e221e540ef5bc304e69b83c3",
|
||||
"from": "git+https://github.com/marcosrdz/react-native-system-setting.git"
|
||||
},
|
||||
"react-native-tab-view": {
|
||||
"version": "1.4.1",
|
||||
"resolved": "https://registry.npmjs.org/react-native-tab-view/-/react-native-tab-view-1.4.1.tgz",
|
||||
|
@ -44,7 +44,7 @@
|
||||
},
|
||||
"setupFiles": [
|
||||
"./tests/setup.js"
|
||||
]
|
||||
]
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/preset-env": "7.5.0",
|
||||
@ -113,7 +113,6 @@
|
||||
"react-native-snap-carousel": "3.8.0",
|
||||
"react-native-sortable-list": "0.0.23",
|
||||
"react-native-svg": "9.5.1",
|
||||
"react-native-system-setting": "git+https://github.com/marcosrdz/react-native-system-setting.git",
|
||||
"react-native-tcp": "git+https://github.com/aprock/react-native-tcp.git",
|
||||
"react-native-tooltip": "git+https://github.com/marcosrdz/react-native-tooltip.git",
|
||||
"react-native-vector-icons": "6.6.0",
|
||||
|
@ -12,7 +12,6 @@ import {
|
||||
} from '../../BlueComponents';
|
||||
import PropTypes from 'prop-types';
|
||||
import QRCode from 'react-native-qrcode-svg';
|
||||
import SystemSetting from 'react-native-system-setting';
|
||||
/** @type {AppStorage} */
|
||||
let BlueApp = require('../../BlueApp');
|
||||
const loc = require('../../loc');
|
||||
@ -34,12 +33,6 @@ export default class LNDViewAdditionalInvoiceInformation extends Component {
|
||||
return;
|
||||
}
|
||||
this.setState({ walletInfo: fromWallet.info_raw, addressText: fromWallet.info_raw.uris[0] });
|
||||
await SystemSetting.saveBrightness();
|
||||
await SystemSetting.setAppBrightness(1.0);
|
||||
}
|
||||
|
||||
async componentWillUnmount() {
|
||||
await SystemSetting.restoreBrightness();
|
||||
}
|
||||
|
||||
render() {
|
||||
|
@ -14,7 +14,6 @@ import PropTypes from 'prop-types';
|
||||
import ReactNativeHapticFeedback from 'react-native-haptic-feedback';
|
||||
import { Icon } from 'react-native-elements';
|
||||
import QRCode from 'react-native-qrcode-svg';
|
||||
import SystemSetting from 'react-native-system-setting';
|
||||
/** @type {AppStorage} */
|
||||
let BlueApp = require('../../BlueApp');
|
||||
const loc = require('../../loc');
|
||||
@ -63,8 +62,6 @@ export default class LNDViewInvoice extends Component {
|
||||
|
||||
if (typeof updatedUserInvoice !== 'undefined') {
|
||||
this.setState({ invoice: updatedUserInvoice, isLoading: false, addressText: updatedUserInvoice.payment_request });
|
||||
await SystemSetting.saveBrightness();
|
||||
await SystemSetting.setAppBrightness(1.0);
|
||||
if (updatedUserInvoice.ispaid) {
|
||||
// we fetched the invoice, and it is paid :-)
|
||||
this.setState({ isFetchingInvoices: false });
|
||||
@ -97,7 +94,6 @@ export default class LNDViewInvoice extends Component {
|
||||
clearInterval(this.fetchInvoiceInterval);
|
||||
this.fetchInvoiceInterval = undefined;
|
||||
BackHandler.removeEventListener('hardwareBackPress', this.handleBackButton);
|
||||
await SystemSetting.restoreBrightness();
|
||||
}
|
||||
|
||||
handleBackButton = () => {
|
||||
|
@ -15,7 +15,6 @@ import PropTypes from 'prop-types';
|
||||
import Privacy from '../../Privacy';
|
||||
import Share from 'react-native-share';
|
||||
import { ScrollView } from 'react-native-gesture-handler';
|
||||
import SystemSetting from 'react-native-system-setting';
|
||||
import { Chain } from '../../models/bitcoinUnits';
|
||||
/** @type {AppStorage} */
|
||||
let BlueApp = require('../../BlueApp');
|
||||
@ -97,16 +96,12 @@ export default class ReceiveDetails extends Component {
|
||||
|
||||
InteractionManager.runAfterInteractions(async () => {
|
||||
const bip21encoded = bip21.encode(this.state.address);
|
||||
this.setState({ bip21encoded }, async () => {
|
||||
await SystemSetting.saveBrightness();
|
||||
await SystemSetting.setAppBrightness(1.0);
|
||||
});
|
||||
this.setState({ bip21encoded });
|
||||
});
|
||||
}
|
||||
|
||||
async componentWillUnmount() {
|
||||
Privacy.disableBlur();
|
||||
await SystemSetting.restoreBrightness();
|
||||
}
|
||||
|
||||
render() {
|
||||
|
@ -4,7 +4,6 @@ import QRCode from 'react-native-qrcode-svg';
|
||||
import { BlueSpacing20, SafeBlueArea, BlueNavigationStyle, BlueText } from '../../BlueComponents';
|
||||
import PropTypes from 'prop-types';
|
||||
import Privacy from '../../Privacy';
|
||||
import SystemSetting from 'react-native-system-setting';
|
||||
import Biometric from '../../class/biometrics';
|
||||
/** @type {AppStorage} */
|
||||
let BlueApp = require('../../BlueApp');
|
||||
@ -40,9 +39,6 @@ export default class WalletExport extends Component {
|
||||
|
||||
async componentDidMount() {
|
||||
Privacy.enableBlur();
|
||||
|
||||
await SystemSetting.saveBrightness();
|
||||
await SystemSetting.setAppBrightness(1.0);
|
||||
const isBiometricsEnabled = await Biometric.isBiometricUseCapableAndEnabled();
|
||||
|
||||
if (isBiometricsEnabled) {
|
||||
@ -58,7 +54,6 @@ export default class WalletExport extends Component {
|
||||
|
||||
async componentWillUnmount() {
|
||||
Privacy.disableBlur();
|
||||
await SystemSetting.restoreBrightness();
|
||||
}
|
||||
|
||||
onLayout = () => {
|
||||
|
@ -4,7 +4,6 @@ import QRCode from 'react-native-qrcode-svg';
|
||||
import { BlueSpacing20, SafeBlueArea, BlueText, BlueNavigationStyle, BlueCopyTextToClipboard } from '../../BlueComponents';
|
||||
import PropTypes from 'prop-types';
|
||||
import Privacy from '../../Privacy';
|
||||
import SystemSetting from 'react-native-system-setting';
|
||||
import Biometric from '../../class/biometrics';
|
||||
/** @type {AppStorage} */
|
||||
let BlueApp = require('../../BlueApp');
|
||||
@ -42,9 +41,6 @@ export default class WalletXpub extends Component {
|
||||
|
||||
async componentDidMount() {
|
||||
Privacy.enableBlur();
|
||||
await SystemSetting.saveBrightness();
|
||||
await SystemSetting.setAppBrightness(1.0);
|
||||
|
||||
const isBiometricsEnabled = await Biometric.isBiometricUseCapableAndEnabled();
|
||||
|
||||
if (isBiometricsEnabled) {
|
||||
@ -59,7 +55,6 @@ export default class WalletXpub extends Component {
|
||||
}
|
||||
|
||||
async componentWillUnmount() {
|
||||
await SystemSetting.restoreBrightness();
|
||||
Privacy.disableBlur();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user