mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 01:40:12 +01:00
DEL: Remove unneccesary flags as they were irrelevant
This commit is contained in:
parent
71fe40f433
commit
403a1d0f4e
@ -2,7 +2,7 @@ import 'react-native-gesture-handler'; // should be on top
|
|||||||
|
|
||||||
import { CommonActions } from '@react-navigation/native';
|
import { CommonActions } from '@react-navigation/native';
|
||||||
import React, { lazy, Suspense, useCallback, useEffect, useRef } from 'react';
|
import React, { lazy, Suspense, useCallback, useEffect, useRef } from 'react';
|
||||||
import { AppState, AppStateStatus, Linking, NativeEventEmitter, NativeModules, Platform, UIManager } from 'react-native';
|
import { AppState, AppStateStatus, Linking, NativeEventEmitter, NativeModules, Platform } from 'react-native';
|
||||||
|
|
||||||
import A from '../blue_modules/analytics';
|
import A from '../blue_modules/analytics';
|
||||||
import BlueClipboard from '../blue_modules/clipboard';
|
import BlueClipboard from '../blue_modules/clipboard';
|
||||||
@ -31,12 +31,6 @@ const ClipboardContentType = Object.freeze({
|
|||||||
LIGHTNING: 'LIGHTNING',
|
LIGHTNING: 'LIGHTNING',
|
||||||
});
|
});
|
||||||
|
|
||||||
if (Platform.OS === 'android') {
|
|
||||||
if (UIManager.setLayoutAnimationEnabledExperimental) {
|
|
||||||
UIManager.setLayoutAnimationEnabledExperimental(true);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const CompanionDelegates = () => {
|
const CompanionDelegates = () => {
|
||||||
const { wallets, addWallet, saveToDisk, fetchAndSaveWalletTransactions, refreshAllWalletTransactions, setSharedCosigner } = useStorage();
|
const { wallets, addWallet, saveToDisk, fetchAndSaveWalletTransactions, refreshAllWalletTransactions, setSharedCosigner } = useStorage();
|
||||||
const appState = useRef<AppStateStatus>(AppState.currentState);
|
const appState = useRef<AppStateStatus>(AppState.currentState);
|
||||||
|
8
index.js
8
index.js
@ -1,7 +1,7 @@
|
|||||||
import './shim.js';
|
import './shim.js';
|
||||||
|
|
||||||
import React, { useEffect } from 'react';
|
import React, { useEffect } from 'react';
|
||||||
import { AppRegistry, LogBox, Platform, UIManager } from 'react-native';
|
import { AppRegistry, LogBox } from 'react-native';
|
||||||
|
|
||||||
import App from './App';
|
import App from './App';
|
||||||
import A from './blue_modules/analytics';
|
import A from './blue_modules/analytics';
|
||||||
@ -14,12 +14,6 @@ if (!Error.captureStackTrace) {
|
|||||||
|
|
||||||
LogBox.ignoreLogs(['Require cycle:', 'Battery state `unknown` and monitoring disabled, this is normal for simulators and tvOS.']);
|
LogBox.ignoreLogs(['Require cycle:', 'Battery state `unknown` and monitoring disabled, this is normal for simulators and tvOS.']);
|
||||||
|
|
||||||
if (Platform.OS === 'android') {
|
|
||||||
if (UIManager.setLayoutAnimationEnabledExperimental) {
|
|
||||||
UIManager.setLayoutAnimationEnabledExperimental(true);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const BlueAppComponent = () => {
|
const BlueAppComponent = () => {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
restoreSavedPreferredFiatCurrencyAndExchangeFromStorage();
|
restoreSavedPreferredFiatCurrencyAndExchangeFromStorage();
|
||||||
|
Loading…
Reference in New Issue
Block a user