|
1 | | -import React, { memo, ReactElement, useEffect, useRef } from 'react'; |
2 | | -import { AppState } from 'react-native'; |
3 | 1 | import NetInfo from '@react-native-community/netinfo'; |
| 2 | +import React, { memo, ReactElement, useEffect, useRef } from 'react'; |
4 | 3 | import { useTranslation } from 'react-i18next'; |
| 4 | +import { AppState } from 'react-native'; |
5 | 5 |
|
6 | | -import RootNavigator from './navigation/root/RootNavigator'; |
7 | 6 | import InactivityTracker from './components/InactivityTracker'; |
8 | | -import { showToast } from './utils/notifications'; |
9 | | -import { startWalletServices } from './utils/startup'; |
10 | | -import { getOnChainWalletElectrumAsync } from './utils/wallet'; |
11 | | -import { unsubscribeFromLightningSubscriptions } from './utils/lightning'; |
12 | 7 | import { useAppSelector } from './hooks/redux'; |
| 8 | +import RootNavigator from './navigation/root/RootNavigator'; |
13 | 9 | import { dispatch } from './store/helpers'; |
14 | | -import { updateUi } from './store/slices/ui'; |
15 | | -import { isOnlineSelector } from './store/reselect/ui'; |
16 | 10 | import { |
17 | 11 | hideBalanceOnOpenSelector, |
18 | 12 | pinOnLaunchSelector, |
19 | 13 | pinSelector, |
20 | 14 | } from './store/reselect/settings'; |
| 15 | +import { isOnlineSelector } from './store/reselect/ui'; |
21 | 16 | import { |
22 | 17 | selectedNetworkSelector, |
23 | 18 | selectedWalletSelector, |
24 | 19 | } from './store/reselect/wallet'; |
25 | 20 | import { updateSettings } from './store/slices/settings'; |
| 21 | +import { updateUi } from './store/slices/ui'; |
| 22 | +import { unsubscribeFromLightningSubscriptions } from './utils/lightning'; |
| 23 | +import { showToast } from './utils/notifications'; |
| 24 | +import { startWalletServices } from './utils/startup'; |
| 25 | +import { getOnChainWalletElectrumAsync } from './utils/wallet'; |
26 | 26 | // import { updateExchangeRates } from './store/actions/wallet'; |
27 | 27 |
|
28 | 28 | const AppOnboarded = (): ReactElement => { |
|
0 commit comments