mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-22 06:52:41 +01:00
FIX: Pull to refresh
This commit is contained in:
parent
470e91e8d7
commit
722b7e2843
4 changed files with 17 additions and 25 deletions
|
@ -43,7 +43,7 @@ const MenuElements = () => {
|
|||
|
||||
const reloadTransactionsMenuElementsFunction = useCallback(() => {
|
||||
reloadTransactionsMenuActionFunction();
|
||||
},[reloadTransactionsMenuActionFunction]);
|
||||
}, [reloadTransactionsMenuActionFunction]);
|
||||
|
||||
useEffect(() => {
|
||||
console.log('MenuElements: useEffect');
|
||||
|
|
28
package-lock.json
generated
28
package-lock.json
generated
|
@ -11,12 +11,12 @@
|
|||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@babel/preset-env": "^7.20.0",
|
||||
"@bugsnag/react-native": "7.22.4",
|
||||
"@bugsnag/react-native": "7.22.5",
|
||||
"@bugsnag/source-maps": "2.3.1",
|
||||
"@keystonehq/bc-ur-registry": "0.6.4",
|
||||
"@ngraveio/bc-ur": "1.1.6",
|
||||
"@noble/secp256k1": "1.6.3",
|
||||
"@react-native-async-storage/async-storage": "1.21.0",
|
||||
"@react-native-async-storage/async-storage": "1.22.0",
|
||||
"@react-native-clipboard/clipboard": "1.13.2",
|
||||
"@react-native-community/push-notification-ios": "1.11.0",
|
||||
"@react-navigation/drawer": "6.6.7",
|
||||
|
@ -2261,9 +2261,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@bugsnag/react-native": {
|
||||
"version": "7.22.4",
|
||||
"resolved": "https://registry.npmjs.org/@bugsnag/react-native/-/react-native-7.22.4.tgz",
|
||||
"integrity": "sha512-rkIRpw9WEb2WJVkl4ebzgfyqL9NGFN+EnYcN4Eiwfdradcc/V1LOCKuoE6uTuDw3mtWOO+mrgMfW4vtJ+XBdAA==",
|
||||
"version": "7.22.5",
|
||||
"resolved": "https://registry.npmjs.org/@bugsnag/react-native/-/react-native-7.22.5.tgz",
|
||||
"integrity": "sha512-ZEDVfSZBxVTloFP3zkMW4xd3bEHD0R7/UNfsqTAYm2mAWLlNpMIcn6xKFdUSoMKFk0LUGwEy+7a0T2IUThL4ow==",
|
||||
"dependencies": {
|
||||
"@bugsnag/core": "^7.19.0",
|
||||
"@bugsnag/delivery-react-native": "^7.22.3",
|
||||
|
@ -4319,9 +4319,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@react-native-async-storage/async-storage": {
|
||||
"version": "1.21.0",
|
||||
"resolved": "https://registry.npmjs.org/@react-native-async-storage/async-storage/-/async-storage-1.21.0.tgz",
|
||||
"integrity": "sha512-JL0w36KuFHFCvnbOXRekqVAUplmOyT/OuCQkogo6X98MtpSaJOKEAeZnYO8JB0U/RIEixZaGI5px73YbRm/oag==",
|
||||
"version": "1.22.0",
|
||||
"resolved": "https://registry.npmjs.org/@react-native-async-storage/async-storage/-/async-storage-1.22.0.tgz",
|
||||
"integrity": "sha512-b5KD010iiZnot86RbAaHpLuHwmPW2qA3SSN/OSZhd1kBoINEQEVBuv+uFtcaTxAhX27bT0wd13GOb2IOSDUXSA==",
|
||||
"dependencies": {
|
||||
"merge-options": "^3.0.4"
|
||||
},
|
||||
|
@ -24231,9 +24231,9 @@
|
|||
"integrity": "sha512-+XDk0OoeM6MZhBh7kEalbRwFuhCZST6Y1jOostfz0fhrmT4FdgQYi1FWcPNsUTcjqv7M48pOFZNx8yWI0lGaYg=="
|
||||
},
|
||||
"@bugsnag/react-native": {
|
||||
"version": "7.22.4",
|
||||
"resolved": "https://registry.npmjs.org/@bugsnag/react-native/-/react-native-7.22.4.tgz",
|
||||
"integrity": "sha512-rkIRpw9WEb2WJVkl4ebzgfyqL9NGFN+EnYcN4Eiwfdradcc/V1LOCKuoE6uTuDw3mtWOO+mrgMfW4vtJ+XBdAA==",
|
||||
"version": "7.22.5",
|
||||
"resolved": "https://registry.npmjs.org/@bugsnag/react-native/-/react-native-7.22.5.tgz",
|
||||
"integrity": "sha512-ZEDVfSZBxVTloFP3zkMW4xd3bEHD0R7/UNfsqTAYm2mAWLlNpMIcn6xKFdUSoMKFk0LUGwEy+7a0T2IUThL4ow==",
|
||||
"requires": {
|
||||
"@bugsnag/core": "^7.19.0",
|
||||
"@bugsnag/delivery-react-native": "^7.22.3",
|
||||
|
@ -25821,9 +25821,9 @@
|
|||
"dev": true
|
||||
},
|
||||
"@react-native-async-storage/async-storage": {
|
||||
"version": "1.21.0",
|
||||
"resolved": "https://registry.npmjs.org/@react-native-async-storage/async-storage/-/async-storage-1.21.0.tgz",
|
||||
"integrity": "sha512-JL0w36KuFHFCvnbOXRekqVAUplmOyT/OuCQkogo6X98MtpSaJOKEAeZnYO8JB0U/RIEixZaGI5px73YbRm/oag==",
|
||||
"version": "1.22.0",
|
||||
"resolved": "https://registry.npmjs.org/@react-native-async-storage/async-storage/-/async-storage-1.22.0.tgz",
|
||||
"integrity": "sha512-b5KD010iiZnot86RbAaHpLuHwmPW2qA3SSN/OSZhd1kBoINEQEVBuv+uFtcaTxAhX27bT0wd13GOb2IOSDUXSA==",
|
||||
"requires": {
|
||||
"merge-options": "^3.0.4"
|
||||
}
|
||||
|
|
|
@ -366,11 +366,7 @@ const WalletsList = () => {
|
|||
refreshTransactions(true, false);
|
||||
};
|
||||
|
||||
const refreshProps = isDesktop
|
||||
? {}
|
||||
: {
|
||||
...(isElectrumDisabled ? {} : { refreshing: isLoading, onRefresh }),
|
||||
};
|
||||
const refreshProps = isDesktop || isElectrumDisabled ? {} : { refreshing: isLoading, onRefresh };
|
||||
|
||||
return (
|
||||
<View style={styles.root} onLayout={onLayout}>
|
||||
|
|
|
@ -521,11 +521,7 @@ const WalletTransactions = ({ navigation }) => {
|
|||
}, []),
|
||||
);
|
||||
|
||||
const refreshProps = isDesktop
|
||||
? {}
|
||||
: {
|
||||
...(isElectrumDisabled ? {} : { refreshing: isLoading, refreshTransactions }),
|
||||
};
|
||||
const refreshProps = isDesktop || isElectrumDisabled ? {} : { refreshing: isLoading, refreshTransactions };
|
||||
|
||||
return (
|
||||
<View style={styles.flex}>
|
||||
|
|
Loading…
Add table
Reference in a new issue